Message156446
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 |
|
Date |
User |
Action |
Args |
2012-03-20 18:56:39 | neologix | set | recipients:
+ neologix, loewis, pitrou, nadeem.vawda, eric.araujo, Arfrever, rosslagerwall |
2012-03-20 18:56:38 | neologix | link | issue14229 messages |
2012-03-20 18:56:38 | neologix | create | |
|