diff options
author | mtm <mtm@FreeBSD.org> | 2003-07-08 09:58:23 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-07-08 09:58:23 +0000 |
commit | fabe2820c027b730e9a2bdb6d5e9f4e51574a470 (patch) | |
tree | 0db0159177bc3431faaebf30c10dae49c467160c /lib/libthr/thread/thr_init.c | |
parent | 8efa9fd6782501b035dd192b83b788587d4a1a5f (diff) | |
download | FreeBSD-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_init.c')
-rw-r--r-- | lib/libthr/thread/thr_init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index 671bd6f..86622b6 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -349,6 +349,9 @@ _thread_init(void) SIGEMPTYSET(_thread_suspend_sigset); SIGADDSET(_thread_suspend_sigset, SIGTHR); } +#ifdef _PTHREADS_INVARIANTS + SIGADDSET(_thread_suspend_sigset, SIGALRM); +#endif /* Get the kernel clockrate: */ mib[0] = CTL_KERN; |