[issue39622] KeyboardInterrupt is ignored when await asyncio.sleep(0)

Maor Kleinberger report at bugs.python.org
Tue Feb 25 18:13:31 EST 2020


Maor Kleinberger <kmaork at gmail.com> added the comment:

While looking into this proposal, I realized that this will not wake up the loop from the select call. I think the safest solution would be to use the wakeup fd mechanism.

An additional easy, but less secure solution would be to define an internal 'signal safe' context manager that will be used only in the critical parts.

What do you think?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39622>
_______________________________________


More information about the Python-bugs-list mailing list