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:
@@ -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 ())
|
||||
|
Reference in New Issue
Block a user