[python-win32] Maybe the wrong newsgroup to ask ?

Todd Whiteman twhitema at yahoo.com.au
Wed Jan 27 23:05:45 CET 2010


On 10-01-27 06:12 AM, Stef Mientki wrote:
> hello,
>
> I'm trying to kill processes,
> I started myself with subprocess.popen,
> under windows XP, Python 2.6
>
> Why are the subprocess.Popen methods kill() and terminate () not working,
> while a simple suggestion from this newsgroup, shown below, works perfect ?

Note that the kill method will not kill any child processes. If you want 
to be able to kill the launched process and all of it's child processes, 
see here:
http://benjamin.smedbergs.us/blog/2006-12-11/killableprocesspy/

Cheers,
Todd


More information about the python-win32 mailing list