| ▲ | germandiago a day ago | |
That is exactly what I do: set an stomic variable and do yhings outside of the handler. | ||
| ▲ | masklinn 17 hours ago | parent [-] | |
And that is pretty much what Python does for you, the Python-level signal handlers are not C signal handlers. Python sets a C signal handler to set an interpreter variable then exit, then it calls the Python level signal handler on the main thread (and on the main thread only, which can be a concern in sone cases). | ||