This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Detecting if executing in a signal handler
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: libc-help at sourceware dot org
- Date: Mon, 22 Feb 2016 14:08:18 +0100
- Subject: Re: Detecting if executing in a signal handler
- Authentication-results: sourceware.org; auth=none
- References: <87egc66zuw dot fsf at mid dot deneb dot enyo dot de> <56CB057C dot 30203 at linaro dot org>
* 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.