summary refs log tree commit diff
path: root/nptl/forward.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2014-07-31 14:00:33 -0700
committerRoland McGrath <roland@hack.frob.com>2014-07-31 14:00:33 -0700
commitf61a113fe0f703c19af20f54d65acfbb203b726a (patch)
tree7b8bdcbe06ce14af164f1dda44dfa14a1764d596 /nptl/forward.c
parent9fe7e787adc4f41201c441014fbad318eaae6f80 (diff)
downloadglibc-f61a113fe0f703c19af20f54d65acfbb203b726a.tar.gz
glibc-f61a113fe0f703c19af20f54d65acfbb203b726a.tar.xz
glibc-f61a113fe0f703c19af20f54d65acfbb203b726a.zip
Add __safe_fatal and use it in __pthread_unwind forwarder fallback.
Diffstat (limited to 'nptl/forward.c')
-rw-r--r--nptl/forward.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/nptl/forward.c b/nptl/forward.c
index 6355c2396f..eb3c41f0a2 100644
--- a/nptl/forward.c
+++ b/nptl/forward.c
@@ -23,7 +23,7 @@
 
 #include <shlib-compat.h>
 #include <atomic.h>
-#include <sysdep.h>
+#include <safe-fatal.h>
 
 
 /* Pointers to the libc functions.  */
@@ -202,11 +202,8 @@ FORWARD (pthread_setcancelstate, (int state, int *oldstate), (state, oldstate),
 
 FORWARD (pthread_setcanceltype, (int type, int *oldtype), (type, oldtype), 0)
 
-FORWARD_NORETURN(__pthread_unwind,
-	 void attribute_hidden __attribute ((noreturn)) __cleanup_fct_attribute
-	 attribute_compat_text_section,
-	 (__pthread_unwind_buf_t *buf), (buf), {
-		       /* We cannot call abort() here.  */
-		       INTERNAL_SYSCALL_DECL (err);
-		       INTERNAL_SYSCALL (kill, err, 1, SIGKILL);
-		     })
+FORWARD_NORETURN (__pthread_unwind,
+                  void attribute_hidden __attribute ((noreturn))
+                  __cleanup_fct_attribute attribute_compat_text_section,
+                  (__pthread_unwind_buf_t *buf), (buf),
+                  __safe_fatal ())