From b0aecb1c1e45cfcbab5d0d2f3c2236737c3b1379 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 23 Nov 1997 22:58:26 +0000 Subject: Correct the return value from pthread_cond_timedwait when a timeout occurs (was EAGAIN, is now ETIMEDOUT). Submitted by: Daniel M. Eischen --- lib/libkse/thread/thr_cond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libkse') diff --git a/lib/libkse/thread/thr_cond.c b/lib/libkse/thread/thr_cond.c index 09ebb4e..1f95a2a 100644 --- a/lib/libkse/thread/thr_cond.c +++ b/lib/libkse/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; } } -- cgit v1.1