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

From: Fons Rademakers (Fons.Rademakers@cern.ch)
Date: Tue Nov 27 2001 - 14:31:30 MET


Hi Walter,


   what does not work? I tried the same sequence and it worked fine
for me, i.e. my new interrupt handler was called and after removing
it and add()ing the gApplication signalhandler I had back the old
handler.

Cheers, Fons.


On Monday 26 November 2001 21:59, Walter F.J. Mueller wrote:
> 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

-- 
Org:    CERN, European Laboratory for Particle Physics.
Mail:   1211 Geneve 23, Switzerland
E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
WWW:    http://root.cern.ch/~rdm/            Fax:   +41 22 7679480



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