Message313146
The docs state:
> If restore_signals is true (the default) all signals that Python has set to SIG_IGN are restored to SIG_DFL in the child process before the exec. Currently this includes the SIGPIPE, SIGXFZ and SIGXFSZ signals. (POSIX only)
The first phrase and the second may seem contradictory for anyone that uses signal handling in their code.
I would definitely not describe the set of "SIGPIPE, SIGXFZ and SIGXFSZ" as "all signals that Python has set". It actually means "all the signals that Python set at startup"; the user could have changed different signals than these (e.g. SIGINT) for various purposes (e.g. not getting a KeyboardInterrupt while an interactive process is running).
The current wording may suggest that all signals changed by the user are reset in the child process, but this is not the case -- I could confirm by looking at _Py_RestoreSignals(). Only these three specific signals are restored. |
|
Date |
User |
Action |
Args |
2018-03-02 17:31:25 | ntrrgc | set | recipients:
+ ntrrgc |
2018-03-02 17:31:25 | ntrrgc | set | messageid: <1520011885.85.0.467229070634.issue32985@psf.upfronthosting.co.za> |
2018-03-02 17:31:25 | ntrrgc | link | issue32985 messages |
2018-03-02 17:31:25 | ntrrgc | create | |
|