Subject: Re: signal handler context...
To: None <tech-kern@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 12/14/2001 16:04:44
[quoting order normalized -dM]
>>> Is there a way/system call available for user land code to find out
>>> if it is running from a signal handler or not ?
>> Yes, by setting up your handler routine to record this information.
> Thanks, I guess....
> but let's say I'm a library and being called from someone else's
> signal handling routine ?
I haven't been able to think of any, short of walking back up your call
stack and looking for a signal tranpoline signature.
Why do you care? There may be a better way to solve the underlying
problem.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B