mirror of
https://github.com/curl/curl.git
synced 2026-07-22 20:57:25 +03:00
Avoid a potential zombie process when killing an old ftpserver
This commit is contained in:
parent
e58a3fd0aa
commit
13afcbd1eb
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue