mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
NPTL: Use __libc_fatal in unwind.c.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
2014-11-20 Roland McGrath <roland@hack.frob.com>
|
2014-11-20 Roland McGrath <roland@hack.frob.com>
|
||||||
|
|
||||||
|
* nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
|
||||||
|
|
||||||
* nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
|
* nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
|
||||||
PTHREAD_CANCEL_ASYNCHRONOUS.
|
PTHREAD_CANCEL_ASYNCHRONOUS.
|
||||||
* nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
|
* nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
<http://www.gnu.org/licenses/>. */
|
<http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
@ -103,11 +104,7 @@ unwind_cleanup (_Unwind_Reason_Code reason, struct _Unwind_Exception *exc)
|
|||||||
{
|
{
|
||||||
/* When we get here a C++ catch block didn't rethrow the object. We
|
/* When we get here a C++ catch block didn't rethrow the object. We
|
||||||
cannot handle this case and therefore abort. */
|
cannot handle this case and therefore abort. */
|
||||||
# define STR_N_LEN(str) str, strlen (str)
|
__libc_fatal ("FATAL: exception not rethrown\n");
|
||||||
INTERNAL_SYSCALL_DECL (err);
|
|
||||||
INTERNAL_SYSCALL (write, err, 3, STDERR_FILENO,
|
|
||||||
STR_N_LEN ("FATAL: exception not rethrown\n"));
|
|
||||||
abort ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* have forced unwind */
|
#endif /* have forced unwind */
|
||||||
|
Reference in New Issue
Block a user