[issue9504] signal.signal/signal.alarm not working as expected

Antoine Pitrou report at bugs.python.org
Sun Jan 9 16:14:01 CET 2011

Antoine Pitrou <pitrou at free.fr> added the comment:

Charles-François' analysis seems to be right. Note that the actual issue here is that read() always succeeds, returning a partial result (because you're executing a command, 'find /', which outputs a lot of data). If read() were interrupted before anything could be read, it would return EINTR and the handler would get executed immediately.

Anyone wants to propose a patch + tests?

versions: +Python 3.2

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list