diff options
author | dfr <dfr@FreeBSD.org> | 2003-12-26 12:11:16 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2003-12-26 12:11:16 +0000 |
commit | 8f76255422dafe2a7d2843331b9cb8e8f393a2e6 (patch) | |
tree | c5c21e5fbcabbe5e857e3988f2b2a313f302e4d3 /lib | |
parent | de5cd0573f6b659a0e94b6602fe5cf696cbc0300 (diff) | |
download | FreeBSD-src-8f76255422dafe2a7d2843331b9cb8e8f393a2e6.zip FreeBSD-src-8f76255422dafe2a7d2843331b9cb8e8f393a2e6.tar.gz |
Don't block SIGTRAP - it makes it hard to debug programs with gdb.
Reviewed by: mtm
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libthr/thread/thr_kern.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_kern.c b/lib/libthr/thread/thr_kern.c index 5de6051..516c570 100644 --- a/lib/libthr/thread/thr_kern.c +++ b/lib/libthr/thread/thr_kern.c @@ -78,6 +78,7 @@ _thread_sigblock() #ifdef _PTHREADS_INVARIANTS SIGDELSET(set, SIGABRT); #endif + SIGDELSET(set, SIGTRAP); /* If we have already blocked signals, just up the refcount */ if (++curthread->signest > 1) |