Re: [ROOT] Signal handlers and the like

From: Valeriy Onuchin (Valeri.Onoutchine@cern.ch)
Date: Fri Jan 09 2004 - 18:26:38 MET


Hi Matt,
you can add and remove signal handlers by using
http://root.cern.ch/root/html310/TSystem.html#TSystem:AddSignalHandler
http://root.cern.ch/root/html310/TSystem.html#TSystem:RemoveSignalHandler

by default the following signals are handled  (windows is without the last twos)
 kSigChild, kSigBus,  kSigSegmentationViolation
 kSigIllegalInstruction,  kSigSystem,   kSigPipe,     kSigAlarm,   
 kSigFloatingException,    kSigWindowChanged,     kSigUrgent

Proof sources contain an examples of user-defined signal handler. 
Hopefully Fons will add something to this topic.

Regards. Valeriy

> Hi,
> I'm using ROOT as a library for a set of external applications.  It 
> seems that ROOT automatically installs some signal handlers which I 
> would much rather it didn't do for these applications.  Is there any way 
> of stopping this behaviour?
> 
> Also, does ROOT install unexpected exception handlers or do other things 
> which may modify how programs they are linked to behave?
> 
> Thanks,
> Matt
> 
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET