This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Detecting if executing in a signal handler
- From: Florian Weimer <fw at deneb dot enyo dot de>
- To: libc-help at sourceware dot org
- Date: Sun, 21 Feb 2016 12:56:39 +0100
- Subject: Detecting if executing in a signal handler
- Authentication-results: sourceware.org; auth=none
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.