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.