summaryrefslogtreecommitdiffstats
path: root/buildrun.cxx
diff options
context:
space:
mode:
authorfche <fche>2008-02-28 21:34:46 +0000
committerfche <fche>2008-02-28 21:34:46 +0000
commit49abf162fa91397b0c65d41f5c9af31ace4e6290 (patch)
tree45fe654102d6db99e627fe04f7cbfd78e9db12e1 /buildrun.cxx
parent7e6c2d0bd81af35151167ca75fc1b7d20a9e9a7d (diff)
downloadsystemtap-steved-49abf162fa91397b0c65d41f5c9af31ace4e6290.tar.gz
systemtap-steved-49abf162fa91397b0c65d41f5c9af31ace4e6290.tar.xz
systemtap-steved-49abf162fa91397b0c65d41f5c9af31ace4e6290.zip
PR5045: clean up after interrupts
2008-02-28 Frank Ch. Eigler <fche@elastic.org> PR5045 * session.h (pending_interrupts): New global. * main.cxx (handle_interrupts): New fn to handle SIGINT* etc. * elaborate.cxx, translate.cxx, tapsets.cxx, main.cxx (*): Insert pending_interrupts escape hatches inside potentially timetaking loops. * buildrun.cxx: Don't deal with signals.
Diffstat (limited to 'buildrun.cxx')
-rw-r--r--buildrun.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/buildrun.cxx b/buildrun.cxx
index 67836108..f3f29d49 100644
--- a/buildrun.cxx
+++ b/buildrun.cxx
@@ -16,7 +16,7 @@
#include <sstream>
extern "C" {
-#include "signal.h"
+#include <signal.h>
#include <sys/wait.h>
#include <pwd.h>
#include <sys/types.h>
@@ -269,9 +269,6 @@ run_pass (systemtap_session& s)
if (s.verbose>1) clog << "Running " << staprun_cmd << endl;
- signal (SIGHUP, SIG_IGN);
- signal (SIGINT, SIG_IGN);
rc = system (staprun_cmd.c_str ());
-
return rc;
}