summaryrefslogtreecommitdiffstats
path: root/lib/libthr/thread/thr_kern.c
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2003-07-08 09:58:23 +0000
committermtm <mtm@FreeBSD.org>2003-07-08 09:58:23 +0000
commitfabe2820c027b730e9a2bdb6d5e9f4e51574a470 (patch)
tree0db0159177bc3431faaebf30c10dae49c467160c /lib/libthr/thread/thr_kern.c
parent8efa9fd6782501b035dd192b83b788587d4a1a5f (diff)
downloadFreeBSD-src-fabe2820c027b730e9a2bdb6d5e9f4e51574a470.zip
FreeBSD-src-fabe2820c027b730e9a2bdb6d5e9f4e51574a470.tar.gz
When _PTHREADSINVARIANTS is defined SIGABRT is not included
in the set of signals to block. Also, make the PANIC macro call abort() instead of simply exiting.
Diffstat (limited to 'lib/libthr/thread/thr_kern.c')
-rw-r--r--lib/libthr/thread/thr_kern.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_kern.c b/lib/libthr/thread/thr_kern.c
index b3dae7d..f99547e 100644
--- a/lib/libthr/thread/thr_kern.c
+++ b/lib/libthr/thread/thr_kern.c
@@ -77,6 +77,9 @@ _thread_sigblock()
*/
SIGFILLSET(set);
SIGADDSET(set, SIGTHR);
+#ifdef _PTHREADS_INVARIANTS
+ SIGDELSET(set, SIGABRT);
+#endif
/* If we have already blocked signals, just up the refcount */
if (++curthread->signest > 1)
OpenPOWER on IntegriCloud