[Python-Dev] Removing PID check from signal handler
Jeroen Demeyer
J.Demeyer at UGent.be
Fri Apr 12 12:19:36 EDT 2019
More information about the Python-Dev mailing list
Fri Apr 12 12:19:36 EDT 2019
- Previous message (by thread): [Python-Dev] Update PEP 394: Distributions can choose what does python command mean
- Next message (by thread): [Python-Dev] Removing PID check from signal handler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The signal handler (that receives signals from the OS) in Python starts
with a check
if (getpid() == main_pid)
Looking at the comments, the intent was to do a check for the main
*thread* but this is checking the *process* id. So this condition is
basically always true. Therefore, I suggest to remove it in
https://bugs.python.org/issue36601
If you have any objections or comments, I suggest to post them to that bpo.
Jeroen.
- Previous message (by thread): [Python-Dev] Update PEP 394: Distributions can choose what does python command mean
- Next message (by thread): [Python-Dev] Removing PID check from signal handler
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list