[ROOT] Temporarily replacing the ^C (interrupt signal) handler

From: Walter F.J. Mueller (w.f.j.mueller@gsi.de)
Date: Mon Nov 26 2001 - 21:59:04 MET


Hi,

I'm trying to temporarily replace the default interrupt signal handler
in the Rint environment to be able to terminate an event loop in 
synchronous fashion. Something like

	gApplication->GetSignalHandler()->Remove();
	fpTAGrootInterruptHandler->Add()

	... do my thing, checking a flag after each event ...

	fpTAGrootInterruptHandler->Remove();
	gApplication->GetSignalHandler()->Add();

That had all kinds of effects, short of the desired one.

So I wonder what the proper way is to address this standart issue.


			Thanks in advance,

				Walter F.J. Mueller

--
Walter F.J. Mueller   Mail:  W.F.J.Mueller@gsi.de
GSI,  Abteilung KP3   Phone: +49-6159-71-2766
D-64291 Darmstadt     FAX:   +49-6159-71-2989
WWW:   http://www-kp3.gsi.de/www/kp3/people/mueller.html
PGP:   http://www-kp3.gsi.de/~mueller/pgp.shtml



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:09 MET