[issue19850] asyncio: limit EINTR occurrences with SA_RESTART

STINNER Victor report at bugs.python.org
Mon Dec 2 17:58:13 CET 2013


STINNER Victor added the comment:

> I have a question. Is there actually any need for this with asyncio?

I believe that the libc and the kernel knows better than Python how to
restart a syscalls, than Python. I expect more reliable timeout, or
the kernel may avoid context switches (don't wake up the process).

In practice, you should not see any difference. Or maybe only on some
corner cases. But do you want to handle these corner cases while there
is already a portable flag for them? :-)

----------

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


More information about the Python-bugs-list mailing list