summaryrefslogtreecommitdiff
path: root/src/setjmp/_longjmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/setjmp/_longjmp.c')
-rw-r--r--src/setjmp/_longjmp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/setjmp/_longjmp.c b/src/setjmp/_longjmp.c
index 8378c9ac..c274889c 100644
--- a/src/setjmp/_longjmp.c
+++ b/src/setjmp/_longjmp.c
@@ -1,11 +1,11 @@
-#if 0
-
#include <setjmp.h>
+#include "_safety.h"
/** restore calling environment **/
void _longjmp(jmp_buf env, int val)
{
+ SIGNAL_SAFE(0);
return longjmp(env, val);
}
@@ -31,6 +31,3 @@ UNDEFINED(THIS() is called from a nested signal handler)
XOPEN(400)
XOBSOLETE(700, FUNCTION(siglongjmp))
*/
-
-
-#endif