Milko Krachounov <pyt...@milko.3mhz.net> added the comment:

The cloexec approach still doesn't help with issue 2320. In fact, with 
threading and people calling subprocess from multiple threads, *this* issue 
wouldn't be fixed with my patch either unless mutexes are used. It's impossible 
to avoid a race here with threads and no mutex as far as I can tell. It would 
mean that the creation of the pipe, the fork and the setting of the CLOEXEC 
flag needs to be done atomically... yikes.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue7213>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to