summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjb <jb@FreeBSD.org>1998-04-29 09:06:13 +0000
committerjb <jb@FreeBSD.org>1998-04-29 09:06:13 +0000
commit44b61e0100175e879d2c682de277d85fcb200583 (patch)
tree5629fa3d024ed0f6150199b6401fa55c91043d30 /lib/libc
parentfe85f77293a79915e66ea00adaab7fd30f4cecfc (diff)
downloadFreeBSD-src-44b61e0100175e879d2c682de277d85fcb200583.zip
FreeBSD-src-44b61e0100175e879d2c682de277d85fcb200583.tar.gz
Use signal() in both the threaded and non-threaded cases.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/abort.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c
index 4fd34dc..b6b4be9 100644
--- a/lib/libc/stdlib/abort.c
+++ b/lib/libc/stdlib/abort.c
@@ -74,11 +74,10 @@ abort()
* if SIGABRT ignored, or caught and the handler returns, do
* it again, only harder.
*/
+ (void)signal(SIGABRT, SIG_DFL);
#ifdef _THREAD_SAFE
- (void) _thread_sys_signal(SIGABRT, SIG_DFL);
(void) _thread_sys_sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL);
#else
- (void)signal(SIGABRT, SIG_DFL);
(void)sigprocmask(SIG_SETMASK, &mask, (sigset_t *)NULL);
#endif
(void)kill(getpid(), SIGABRT);
OpenPOWER on IntegriCloud