[Python-Dev] Questions about signal handling. (original) (raw)
Victor Stinner vstinner at redhat.com
Fri Sep 21 19:10:59 EDT 2018
- Previous message (by thread): [Python-Dev] Questions about signal handling.
- Next message (by thread): [Python-Dev] Questions about signal handling.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Le sam. 22 sept. 2018 à 01:05, Eric Snow <ericsnowcurrently at gmail.com> a écrit :
3. Why does signal handling operate via the "pending calls" machinery and not distinctly?
Signals can be received anytime, between two instructions at the machine code level. But the Python code base is rarely reentrant. Moreover, you can get the signal while you don't hold the GIL :-)
Victor
- Previous message (by thread): [Python-Dev] Questions about signal handling.
- Next message (by thread): [Python-Dev] Questions about signal handling.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]