STINNER Victor <victor.stin...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue5115>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to