-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06.04.2013 14:49, Marc Hoersken wrote: > Hi Gisle, > > 2013/4/6 Gisle Vanem <gva...@broadpark.no>: >>> ftp.pm: Made Perl testsuite able to kill Windows processes >> >> >> This patch uses a tool from Windows-XP Professional: >> system("taskkill $filter >nul 2>&1"); >> >> I run Windows-XP Home and have no such tool. AFAICS, one cannot >> get this from MS w/o having a pro version. Isn't there a better >> alternative (like pskill)? > > I am currently testing on Windows 7, so I was not sure if it's > available on earlier versions. Thanks for the input. I will have > to see if there is a better command to check and kill PIDs. > > The problem with pskill is that it would have to be manually > installed by test users. You can use Win32API Perl module and TerminateProcess or SafeTerminateProcess. Also, CreateJobObject + AssignProcessToJobObject can be used to implement behaviour similar to kill -<pid>. Obviously, that also requires Win32API module.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRYCz6AAoJEOs4Jb6SI2CwOnsH/3UkYOqnawA/21Mr3a0Uar97 x/7E/lmYSFROvDq5l7XWFnMIyjIqXSuo/MrXe1JraCLsWh53JQHjWIyLwNLW+i6z YFQkFnFraT1X7Vw0ej44/28ntID4OgIsBeJ5iyeQz9TG3s09DXTJQSEWTvfQ8dyr ssHQsAArSpW0Rtp8s3sMr0cQx9lIifgqO7+DDcPfWH7OgMFpOD5d0yXc1u0tX5qz lm8kOrN6USPfLaulw7oHZA9S2i8NUCNgWW3Td+H+IZ1fcuu/XUiLVCo/QbOOqm7+ 5qbbuK+XTbXc27gi2LAfZzLrcyiypgpm2vVCTvBOmMZSi91f58ABxI4v5Q0f3LM= =Rpoo -----END PGP SIGNATURE----- ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html