[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X
Ronald Oussoren
report at bugs.python.org
Tue Dec 1 16:47:48 CET 2009
Ronald Oussoren <ronaldoussoren at mac.com> added the comment:
Hugh: never mind ....
There is a workaround for this issue: use socketpair(2) instead of
pipe(2). I haven't thought enough about the consequences yet to have an
firm opinion on implementing os.pipe using socketpair(2) on OSX. My gut
feeling is that we shouldn't because pipes and sockets can have slightly
different behavior, especially w.r.t. buffering.
As a workaround for this issue you can at least use socket.socketpair
instead of os.pipe.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7401>
_______________________________________
More information about the Python-bugs-list
mailing list