summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authoralex <alex@FreeBSD.org>1997-11-23 22:58:26 +0000
committeralex <alex@FreeBSD.org>1997-11-23 22:58:26 +0000
commitb0aecb1c1e45cfcbab5d0d2f3c2236737c3b1379 (patch)
tree6e6def1d5db40e24251a4f81421c01c153aa08c5 /lib/libpthread
parente67a68e11569dc9b6011ae020faa531c1b8dd1e5 (diff)
downloadFreeBSD-src-b0aecb1c1e45cfcbab5d0d2f3c2236737c3b1379.zip
FreeBSD-src-b0aecb1c1e45cfcbab5d0d2f3c2236737c3b1379.tar.gz
Correct the return value from pthread_cond_timedwait when a timeout
occurs (was EAGAIN, is now ETIMEDOUT). Submitted by: Daniel M. Eischen <deischen@iworks.InterWorks.org>
Diffstat (limited to 'lib/libpthread')
-rw-r--r--lib/libpthread/thread/thr_cond.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_cond.c b/lib/libpthread/thread/thr_cond.c
index 09ebb4e..1f95a2a 100644
--- a/lib/libpthread/thread/thr_cond.c
+++ b/lib/libpthread/thread/thr_cond.c
@@ -242,7 +242,7 @@ pthread_cond_timedwait(pthread_cond_t * cond, pthread_mutex_t * mutex,
/* Check if the wait timed out: */
else if (_thread_run->timeout) {
/* Return a timeout error: */
- errno = EAGAIN;
+ errno = ETIMEDOUT;
rval = -1;
}
}
OpenPOWER on IntegriCloud