diff options
| author | David Xu <davidxu@FreeBSD.org> | 2006-01-08 10:13:18 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2006-01-08 10:13:18 +0000 |
| commit | 1775714935c99700223786a8fd1442e29015f385 (patch) | |
| tree | 017b23a98811d0229e0d7b316816d70aa2494736 /lib | |
| parent | 9cb4a7bd6407550feaf79d302a79cac682e052fe (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libthr/thread/thr_create.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libthr/thread/thr_create.c b/lib/libthr/thread/thr_create.c index cc0d84e46cd1..6b67f4ea9301 100644 --- a/lib/libthr/thread/thr_create.c +++ b/lib/libthr/thread/thr_create.c @@ -190,6 +190,7 @@ _pthread_create(pthread_t * thread, const pthread_attr_t * attr, } THR_THREAD_UNLOCK(curthread, new_thread); THREAD_LIST_LOCK(curthread); + _thread_active_threads--; new_thread->tlflags |= TLFLAGS_DETACHED; _thr_ref_delete_unlocked(curthread, new_thread); THREAD_LIST_UNLOCK(curthread); |
