Charles-François Natali <neolo...@free.fr> added the comment: I agree with Martin: we really do handle the signal, and as such, the only way to convey the relevant information to the parent as to which signal caused the exit would be to re-raise it, which is really ugly and probably not a good idea.
Processes that want default behavior upon signal reception (so that they can use WEXITSTATUS(), WCOREDUMP() and friends) can always use SIG_DFL: $ python -c "import subprocess, signal, time; p = subprocess.Popen(['python', '-c', 'import signal; signal.signal(signal.SIGINT, signal.SIG_DFL); input()']); time.sleep(1); p.send_signal(signal.SIGINT); print(p.wait())" -2 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14229> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com