1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 09:21:50 -05:00

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

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");
}
}
}