diff options
| author | David Xu <davidxu@FreeBSD.org> | 2003-08-18 04:03:08 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2003-08-18 04:03:08 +0000 |
| commit | 962eaaf9d641203f931e04e34f4bc5a1532bb099 (patch) | |
| tree | 4b8442f3dff515b91c7d5ed492e67205f33fa3ff /lib/libpthread/thread/thr_exit.c | |
| parent | e81bbed597a0ea8392ded3f1161aa98151c496a5 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_exit.c')
| -rw-r--r-- | lib/libpthread/thread/thr_exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_exit.c b/lib/libpthread/thread/thr_exit.c index 6dbef072a50c..5894206a7c58 100644 --- a/lib/libpthread/thread/thr_exit.c +++ b/lib/libpthread/thread/thr_exit.c @@ -87,6 +87,8 @@ _pthread_exit(void *status) { struct pthread *curthread = _get_curthread(); + if (!_kse_isthreaded()) + exit(0); /* Check if this thread is already in the process of exiting: */ if ((curthread->flags & THR_FLAGS_EXITING) != 0) { char msg[128]; |
