diff options
author | mtm <mtm@FreeBSD.org> | 2003-06-30 12:35:31 +0000 |
---|---|---|
committer | mtm <mtm@FreeBSD.org> | 2003-06-30 12:35:31 +0000 |
commit | cd018fba86964f9e9cd0fb8b806a217a5b7e7455 (patch) | |
tree | d6ff4b956445f60211778e73d0c4ef152464b4bd /lib/libthr/thread/thr_join.c | |
parent | 1ef1fa0214a7603fe09c1896407ce34267558f0b (diff) | |
download | FreeBSD-src-cd018fba86964f9e9cd0fb8b806a217a5b7e7455.zip FreeBSD-src-cd018fba86964f9e9cd0fb8b806a217a5b7e7455.tar.gz |
Catchup with _thread_suspend() changes.
Diffstat (limited to 'lib/libthr/thread/thr_join.c')
-rw-r--r-- | lib/libthr/thread/thr_join.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_join.c b/lib/libthr/thread/thr_join.c index 8b57978..ed03367 100644 --- a/lib/libthr/thread/thr_join.c +++ b/lib/libthr/thread/thr_join.c @@ -122,7 +122,9 @@ _pthread_join(pthread_t pthread, void **thread_return) _thread_critical_exit(curthread); THREAD_LIST_UNLOCK; DEAD_LIST_UNLOCK; - _thread_suspend(curthread, NULL); + ret = _thread_suspend(curthread, NULL); + if (ret != 0 && ret != EAGAIN && ret != EINTR) + PANIC("Unable to suspend in join."); /* * XXX - For correctness reasons. |