1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-10-21 14:53:53 +03:00

Add __safe_fatal and use it in __pthread_unwind forwarder fallback.

This commit is contained in:
Roland McGrath
2014-07-31 14:00:33 -07:00
parent 9fe7e787ad
commit f61a113fe0
4 changed files with 82 additions and 9 deletions

View File

@@ -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 ())