summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2008-03-16 03:22:38 +0000
committerDavid Xu <davidxu@FreeBSD.org>2008-03-16 03:22:38 +0000
commita9a11568ff0e11dc6d06c60c46ff6074f53d6c5e (patch)
treec86bc37b594d6bf8e83b23651ce7555a0bbc637a
parent2b1c6615bc29f94841689461fd485396dccd412d (diff)
Notes
-rw-r--r--lib/libthr/thread/thr_create.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c
index 0dc1436cfbc5..6eb3693a5e27 100644
--- a/lib/libthr/thread/thr_create.c
+++ b/lib/libthr/thread/thr_create.c
@@ -168,6 +168,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,
SIGDELSET(set, SIGTRAP);
__sys_sigprocmask(SIG_SETMASK, &set, &oset);
new_thread->sigmask = oset;
+ SIGDELSET(new_thread->sigmask, SIGCANCEL);
}
ret = thr_new(&param, sizeof(param));
@@ -181,10 +182,8 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr,
ret = EAGAIN;
}
- if (create_suspended) {
+ if (create_suspended)
__sys_sigprocmask(SIG_SETMASK, &oset, NULL);
- SIGDELSET(oset, SIGCANCEL);
- }
if (ret != 0) {
if (!locked)