mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
18 lines
414 B
Perl
18 lines
414 B
Perl
|
# make sure no leftovers are still running
|
||
|
sub ftpkillslaves {
|
||
|
for $ext (("", "ipv6")) {
|
||
|
for $id (("", "2")) {
|
||
|
for $base (('filt', 'data')) {
|
||
|
my $f = ".sock$base$id$ext.pid";
|
||
|
my $pid = checkserver($f);
|
||
|
if($pid > 0) {
|
||
|
kill (9, $pid); # die!
|
||
|
}
|
||
|
unlink($f);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
1;
|