diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2004-08-12 12:12:12 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2004-08-12 12:12:12 +0000 |
| commit | b9de27c0051bd9c4ce167327b5824a31baee1474 (patch) | |
| tree | f5cde2cd4e3f3ec2684cfd283ab1b57e8981d4b1 /lib/libpthread/thread/thr_exit.c | |
| parent | 313745d2ade8bb7c2d9c8cd7040732228e54843b (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
| -rw-r--r-- | lib/libpthread/thread/thr_exit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c index ec8e9ec966e9..ecea47ad6dc0 100644 --- a/lib/libpthread/thread/thr_exit.c +++ b/lib/libpthread/thread/thr_exit.c @@ -126,8 +126,8 @@ _pthread_exit(void *status) KSE_LOCK_ACQUIRE(curkse, &_thread_list_lock); /* Use thread_list_lock */ _thread_active_threads--; - if ((_thread_scope_system == 0 && _thread_active_threads == 1) || - (_thread_scope_system != 0 && _thread_active_threads == 0)) { + if ((_thread_scope_system <= 0 && _thread_active_threads == 1) || + (_thread_scope_system > 0 && _thread_active_threads == 0)) { KSE_LOCK_RELEASE(curkse, &_thread_list_lock); _kse_critical_leave(crit); exit(0); |
