summaryrefslogtreecommitdiff
path: root/lib/libpthread
diff options
context:
space:
mode:
authorDaniel Eischen <deischen@FreeBSD.org>2004-04-08 23:16:21 +0000
committerDaniel Eischen <deischen@FreeBSD.org>2004-04-08 23:16:21 +0000
commitb8bbeeda02b884b0d752aa284ed56c5b272409ce (patch)
tree5c4ce9482f48498a0c6de00a8396afa0e05eb845 /lib/libpthread
parent5b8ef52df0004fd0d4d823d63f09ecc3a40a0341 (diff)
Notes
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/thread/thr_kern.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c
index c72e915d1b69..d9a5179c01bc 100644
--- a/lib/libpthread/thread/thr_kern.c
+++ b/lib/libpthread/thread/thr_kern.c
@@ -347,13 +347,14 @@ _kse_single_thread(struct pthread *curthread)
_thr_signal_deinit();
}
__isthreaded = 0;
+ curthread->kse->k_kcb->kcb_kmbx.km_curthread = NULL;
+ curthread->attr.flags |= PTHREAD_SCOPE_SYSTEM;
+
/*
* Restore signal mask early, so any memory problems could
* dump core.
*/
sigprocmask(SIG_SETMASK, &curthread->sigmask, NULL);
- curthread->kse->k_kcb->kcb_kmbx.km_curthread = NULL;
- curthread->attr.flags |= PTHREAD_SCOPE_SYSTEM;
_thr_active_threads = 1;
#endif
}