ftp.pm: Added tskill to support Windows XP Home

This commit is contained in:
Marc Hoersken 2013-04-06 12:55:57 +02:00
parent a03d0c5b88
commit 34fa8d1e38
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ sub pidkill {
my $result = `tasklist -fi \"$filter\" 2>nul`;
if(index($result, "$pid") != -1) {
system("taskkill -f -fi \"$filter\" >nul 2>&1");
# Windows XP Home compatibility
system("tskill $pid >nul 2>&1");
}
}
}