mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
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:
parent
6eca7bce6c
commit
666dfc8237
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31375
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user