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_cond.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_cond.c')
-rw-r--r-- | lib/libthr/thread/thr_cond.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_cond.c b/lib/libthr/thread/thr_cond.c index 6a86b39..00dbb25 100644 --- a/lib/libthr/thread/thr_cond.c +++ b/lib/libthr/thread/thr_cond.c @@ -285,7 +285,7 @@ cond_wait_common(pthread_cond_t * cond, pthread_mutex_t * mutex, _thread_critical_exit(curthread); COND_UNLOCK(*cond); rval = _thread_suspend(curthread, (struct timespec *)abstime); - if (rval == -1) { + if (rval != 0 && rval != EAGAIN && rval != EINTR) { printf("foo"); fflush(stdout); abort(); |