From 49abf162fa91397b0c65d41f5c9af31ace4e6290 Mon Sep 17 00:00:00 2001 From: fche Date: Thu, 28 Feb 2008 21:34:46 +0000 Subject: PR5045: clean up after interrupts 2008-02-28 Frank Ch. Eigler 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. --- session.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'session.h') diff --git a/session.h b/session.h index e2d7cd4f..b06d9ecc 100644 --- a/session.h +++ b/session.h @@ -160,4 +160,7 @@ struct systemtap_session }; +// global counter of SIGINT/SIGTERM's received +extern int pending_interrupts; + #endif // SESSION_H -- cgit