From 13afcbd1ebcd9069d8782769aa9c64ab6cd0329f Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 11 Jul 2008 17:18:37 +0000 Subject: [PATCH] Avoid a potential zombie process when killing an old ftpserver --- tests/ftpserver.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index ce82d64..3841e1f 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -550,6 +550,7 @@ sub PASV_command { if($prev > 0) { print "kill existing server: $prev\n" if($verbose); kill(9, $prev); + waitpid($prev, 0); } # We fire up a new sockfilt to do the data transfer for us. -- 2.7.4