[issue15507] test_subprocess assumes SIGINT is not being ignored.

Thomas Wouters report at bugs.python.org
Tue Jul 31 18:24:57 CEST 2012


Thomas Wouters added the comment:

No, using preexec_fn leaves all kinds of races when mixing threads and processes (which is a bad idea, but people still sometimes do.) And no, restore_signals doesn't fix this; restore_signals only resets the signals the *Python interpreter itself* ignored: SIGFPE, SIGXFZ and SIGFSZ (and it defaults to True anyway.) It doesn't affect other signals at all, even if Python code ignored them.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15507>
_______________________________________


More information about the Python-bugs-list mailing list