[issue9867] Interrupted system calls are not retried

Antoine Pitrou report at bugs.python.org
Thu Sep 16 15:33:25 CEST 2010


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

> Because Python's signal handlers only set a flag and do the actual
> action later on blindly rerunning system calls when errno == EINTR may
> result in programs that don't seem to react to signals at all.

You just need to call PyErr_CheckSignals() and check its result.

----------

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


More information about the Python-bugs-list mailing list