summaryrefslogtreecommitdiff
path: root/tests/ftp.pm
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2007-04-24 21:30:39 +0000
committerDan Fandrich <dan@coneharvesters.com>2007-04-24 21:30:39 +0000
commit17507eac852b2042e51984899fd18b59a17300ee (patch)
tree0653b2209aa078b48a5d848d39d53977e48d0e6b /tests/ftp.pm
parentbc1ae973daafb5881b65e179d2f5ce891acf22bd (diff)
downloadcurl-17507eac852b2042e51984899fd18b59a17300ee.tar.gz
Clear out FTP server options before each new client.
Wait for child processes to die to avoid creating zombies.
Diffstat (limited to 'tests/ftp.pm')
-rw-r--r--tests/ftp.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ftp.pm b/tests/ftp.pm
index 738482a81..b3cc14abb 100644
--- a/tests/ftp.pm
+++ b/tests/ftp.pm
@@ -64,6 +64,7 @@ sub ftpkillslave {
if($pid > 0) {
printf ("* kill pid for %s => %d\n", "ftp-$base$id$ext", $pid) if($verbose);
kill (9, $pid); # die!
+ waitpid($pid, 0);
}
unlink($f);
}