determine whether code is running in a signal handler context
Yubin Ruan
ablacktshirt@gmail.com
Mon Nov 27 12:50:00 GMT 2017
2017-11-27 19:55 GMT+08:00 Florian Weimer <fweimer@redhat.com>:
> On 11/27/2017 09:42 AM, Yubin Ruan wrote:
>>
>> Still remember this thread? It turn out that determining whether or not
>> you
>> are currently in a signal handler is trivial with libunwind:
>
>
> This is incorrect. libunwind (or any other unwinder) relies on information
> which is not always available.
what information?
> And since you need to unwind the stack
> completely (if not executing in a signal handler), it is very slow.
slow speed is acceptable though.
Yubin
More information about the Libc-help
mailing list