]> granicus.if.org Git - strace/commit
On Ctrl-C induced detach, send SIGINT to child tracee, not SIGTERM.
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 29 Jan 2012 15:43:51 +0000 (16:43 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 29 Jan 2012 15:43:51 +0000 (16:43 +0100)
commita3559250d48ccc3ef755183ebb3246cbbb442c0d
tree8266a7eb988565147cc31300d9a40f8f7241fae7
parent31fa8a22b17b2f898513b68e04269597147d2478
On Ctrl-C induced detach, send SIGINT to child tracee, not SIGTERM.

* strace.c (interrupt): Remember signal number.
(cleanup): If we exiting due to signal, send that signal to child tracee.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
strace.c