Detecting if executing in a signal handler

Florian Weimer fw@deneb.enyo.de
Mon Feb 22 13:08:00 GMT 2016


* Adhemerval Zanella:

> On 21-02-2016 08:56, Florian Weimer wrote:
>> Is there a way to check if the current function has been called
>> (directly or indirectly) from a signal handler?
>> 
>> For my purpose, this in-signal flag should be preserved across
>> longjmp, siglongjmp, and fork.
>> 
>
> AFAIK not in a architecture/platform independent way.

Thanks for the confirmation.  I filed bug 19702 to add such a flag.



More information about the Libc-help mailing list