mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
Avoid a potential zombie process when killing an old ftpserver
This commit is contained in:
parent
e58a3fd0aa
commit
13afcbd1eb
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user