1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Avoid a potential zombie process when killing an old ftpserver

This commit is contained in:
Dan Fandrich 2008-07-11 17:18:37 +00:00
parent e58a3fd0aa
commit 13afcbd1eb

View File

@ -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.