[issue38435] Start the deprecation cycle for subprocess preexec_fn
Gregory P. Smith
report at bugs.python.org
Fri Dec 25 01:05:25 EST 2020
Gregory P. Smith <greg at krypto.org> added the comment:
signal.signal use case:
Calls to signal.signal(x, y) to sometimes to set a non SIG_DFL behavior on a signal. SIGINT -> SIG_IGN for example.
I see a lot of legacy looking code calling signal.signal in prexec_fn that appears to set SIG_DFL for the signals that Python otherwise modifies. Which restore_signals=True should already be doing.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38435>
_______________________________________
More information about the Python-bugs-list
mailing list