From: Dan Fandrich Date: Fri, 11 Jul 2008 17:18:37 +0000 (+0000) Subject: Avoid a potential zombie process when killing an old ftpserver X-Git-Tag: cares-1_5_3~365 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13afcbd1ebcd9069d8782769aa9c64ab6cd0329f;p=curl Avoid a potential zombie process when killing an old ftpserver --- diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index ce82d642b..3841e1f32 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.