diff options
author | Brian Somers <brian@FreeBSD.org> | 2006-01-03 15:34:27 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 2006-01-03 15:34:27 +0000 |
commit | 6632abc8dc603a5f9d395f5c17740ba676b6987f (patch) | |
tree | 87953498e6bb421d3b684a3f0bbdb47c4a157c8f /lib/libpthread | |
parent | fdd3cfa0aa03c94a78e48ee46e840e2ec9cb41a7 (diff) |
For the ``#ifdef NOTYET'' code that allows calling non-async-safe
functions in the child after a fork() from a threaded process,
use __sys_setprocmask() rather than setprocmask() to keep our
signal handling sane. Without this fix, signals are essentially
ignored in said child and things such as protection violations
result in an endless busy loop.
Reviewed by: deischen
Notes
Notes:
svn path=/head/; revision=153989
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/thread/thr_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c index be763c240104..ae3a2ff0bebe 100644 --- a/lib/libpthread/thread/thr_kern.c +++ b/lib/libpthread/thread/thr_kern.c @@ -225,7 +225,7 @@ _kse_single_thread(struct pthread *curthread) * Restore signal mask early, so any memory problems could * dump core. */ - sigprocmask(SIG_SETMASK, &curthread->sigmask, NULL); + __sys_sigprocmask(SIG_SETMASK, &curthread->sigmask, NULL); _thread_active_threads = 1; /* |