]> granicus.if.org Git - python/commit
Issue #23694: Fix usage of _Py_open() in the _posixsubprocess module
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Mar 2015 00:18:31 +0000 (02:18 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 30 Mar 2015 00:18:31 +0000 (02:18 +0200)
commit160e819a1d0a01fe79b66bf398c925c0dac0ded1
tree7980ede06448a0a978052440d27eb2dbbd8e124c
parente4a994d6171f47ee9ba68ae1484d940349d62564
Issue #23694: Fix usage of _Py_open() in the _posixsubprocess module

Don't call _Py_open() from _close_open_fds_safe() because it is call just after
fork(). It's not good to play with locks (the GIL) between fork() and exec().

Use instead _Py_open_noraise() which doesn't touch to the GIL.
Modules/_posixsubprocess.c