[issue5115] Extend subprocess.kill to be able to kill process groups
STINNER Victor
report at bugs.python.org
Thu Jan 21 01:29:32 CET 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
> I suspect that on Windows, TerminateJobObject won't work
> with a handle returned by CreateProcess.
TerminateJobObject works with CreateJobObject and AssignProcessToJobObject. The following code (from your patch) should call AssignProcessToJobObject (and CreateJobObject if there is no job yet):
+ if not mswindows:
+ os.setpgid(0, 0)
----------
nosy: +haypo
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5115>
_______________________________________
More information about the Python-bugs-list
mailing list