[issue25118] OSError in os.waitpid() on Windows [3.5.0 regression]

2015-09-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +3.5regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue25118] OSError in os.waitpid() on Windows [3.5.0 regression]

2015-09-15 Thread STINNER Victor
STINNER Victor added the comment: > I know that using os.spawn and and os.waitpid this way is not the best > option, but a 3rd party tool i am using (scons) is doing it that way. No worry, it was just a comment. Anyway, the bug is now fixed and will be part of the next Python 3.5.1 release. -

[issue25118] OSError in os.waitpid() on Windows [3.5.0 regression]

2015-09-15 Thread Rocco Matano
Rocco Matano added the comment: I know that using os.spawn and and os.waitpid this way is not the best option, but a 3rd party tool i am using (scons) is doing it that way. So no scons with Python 3.5.0. (I am also aware that scons does not yet support Python 3.x officially.) --

[issue25118] OSError in os.waitpid() on Windows [3.5.0 regression]

2015-09-15 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed title: OSError in os.waitpid -> OSError in os.waitpid() on Windows [3.5.0 regression] versions: +Python 3.6 ___ Python tracker __

[issue25118] OSError in os.waitpid

2015-09-15 Thread STINNER Victor
STINNER Victor added the comment: Oops :-/ Yet another Python 3.5.0 regression, it's now fixed. os.waitpid() was not tested at all on Windows. os.waitpid() is not the best option to wait for a subprocess completion. By the way, you should use the subprocess module which is more portable, is wi

[issue25118] OSError in os.waitpid

2015-09-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9a80c687c28d by Victor Stinner in branch '3.5': Issue #25118: Fix a regression of Python 3.5.0 in os.waitpid() on Windows. https://hg.python.org/cpython/rev/9a80c687c28d -- nosy: +python-dev ___ Python tr

[issue25118] OSError in os.waitpid

2015-09-15 Thread eryksun
eryksun added the comment: This bug is due to issue 23285, which improved support for EINTR handling. os_waitpid_impl was changed to use the following do-while loop: do { Py_BEGIN_ALLOW_THREADS res = _cwait(&status, pid, options); Py_END_ALLOW_THREADS } while (r

[issue25118] OSError in os.waitpid

2015-09-14 Thread Rocco Matano
New submission from Rocco Matano: On windows and python up to 3.4 using the combination of os.spawnX(os.P_NOWAIT, ...) and os.waitpid() worked as expected, but with python 3.5 this no longer works. In fact os.waitpid() now raises an OSError when the child process terminates. Running this simpl