Skip to content
Snippets Groups Projects
Commit 13afcbd1 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

Avoid a potential zombie process when killing an old ftpserver

parent e58a3fd0
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment