Open
Description
Bug description:
In the Windows-specific implementation of time.sleep
there appears this code:
Lines 2341 to 2345 in b706ff0
If a control-C event happens after PyErr_CheckSignals
returns, but before ResetEvent
is called, I believe that event may be lost.
This is probably a hard race window to hit, and I don't have a Windows development environment, so I have not confirmed that it is possible.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Windows
Metadata
Metadata
Assignees
Projects
Status
No status