[Python-Dev] Questions about signal handling.

eryk sun eryksun at gmail.com
Mon Sep 24 14:34:33 EDT 2018

On Fri, Sep 21, 2018 at 6:10 PM, Victor Stinner <vstinner at redhat.com> wrote:
> Moreover, you can get the signal while you don't hold the GIL :-)

Note that, in Windows, SIGINT and SIGBREAK are implemented in the C
runtime and linked to the corresponding console control events in a
console application, such as python.exe. Console control events are
delivered on a new thread (i.e. no Python thread state) that starts at
CtrlRoutine in kernelbase.dll. The session server (csrss.exe) creates
this thread remotely upon request from the console host process

More information about the Python-Dev mailing list