From fabe2820c027b730e9a2bdb6d5e9f4e51574a470 Mon Sep 17 00:00:00 2001 From: mtm Date: Tue, 8 Jul 2003 09:58:23 +0000 Subject: 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. --- lib/libthr/thread/thr_kern.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/libthr/thread/thr_kern.c') 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) -- cgit v1.1