diff options
author | anithra <anithra@linux.vnet.ibm.com> | 2008-07-17 14:05:45 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2008-07-17 14:05:45 -0400 |
commit | 8a3fc6c9f5336d2a4c8b776799e4ed4fabc5be35 (patch) | |
tree | 42e0ef399db2622029af200a2ce06248038edbbd | |
parent | bddbea049ec8aea1dd1ba06e78ec57206a228677 (diff) | |
download | systemtap-steved-8a3fc6c9f5336d2a4c8b776799e4ed4fabc5be35.tar.gz systemtap-steved-8a3fc6c9f5336d2a4c8b776799e4ed4fabc5be35.tar.xz systemtap-steved-8a3fc6c9f5336d2a4c8b776799e4ed4fabc5be35.zip |
PR6030: forward signals to children - stapio etc.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | main.cxx | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2008-07-17 <anithra@linux.vnet.ibm.com> + + * main.cxx (handle_interrupt): Forward received signal to process + group. + 2008-07-17 Masami Hiramatsu <mhiramat@redhat.com> * systemtap.spec (%files): Add stap-server and stap-serverd. @@ -260,9 +260,10 @@ printscript(systemtap_session& s, ostream& o) int pending_interrupts; extern "C" -void handle_interrupt (int /* sig */) +void handle_interrupt (int sig) { pending_interrupts ++; + kill (0, sig); // forward signals to child processes if any if (pending_interrupts > 1) // XXX: should be configurable? time-based? { char msg[] = "Too many interrupts received, exiting.\n"; |