Ludwig Hähne <[EMAIL PROTECTED]> added the comment:

Hi, I narrowed the problem down to the creation of the error pipe in
_execute_child:

>> errpipe_read, errpipe_write = os.pipe()
>> self._set_cloexec_flag(errpipe_write)

If I protect these two lines with a lock, I cannot reproduce the hang
anymore (tested against Python 2.5.1).

I'm not yet sure why this should be atomic (as there are no classic race
condition problems involved AFAICT).

By the way, this is on Linux:
> uname -a
Linux jade 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686
GNU/Linux

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2320>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to