This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Detecting if executing in a signal handler


* 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]