[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

STINNER Victor report at bugs.python.org
Sun Apr 17 01:17:28 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

I already read somewhere that on FreeBSD, any thread can receive a signal, not only the main thread. I suppose that it should be the same on Linux, but Linux tries maybe to send a signal to the main thread if the main thread and other threads are calling a system call.

In this case, "_read" thread gets the SIGARLM signal and so its os.read() system call is interrupted. It means that os.read() is blocked at least one second, whereas wio.write() is supposed to send data to unblock _read() thread.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11859>
_______________________________________


More information about the Python-bugs-list mailing list