diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-07-31 14:00:33 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-07-31 14:00:33 -0700 |
commit | f61a113fe0f703c19af20f54d65acfbb203b726a (patch) | |
tree | 7b8bdcbe06ce14af164f1dda44dfa14a1764d596 /nptl | |
parent | 9fe7e787adc4f41201c441014fbad318eaae6f80 (diff) | |
download | glibc-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')
-rw-r--r-- | nptl/forward.c | 15 |
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 ()) |