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>
This commit is contained in:
Alexander Langer 1997-11-23 22:58:26 +00:00
parent 6eca7bce6c
commit 666dfc8237
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31375
3 changed files with 3 additions and 3 deletions

View File

@ -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;
}
}

View File

@ -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;
}
}

View File

@ -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;
}
}