From 72ed6bc3974c3c7f112aa9704d073b4bbb86ec35 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 16 May 2002 18:58:50 +0300 Subject: A final and proper fix for HP-UX problems with pthread_cond_timedwait. This time I did it "by the book" as this function can return any of the down cited values after timeout !! This is now done 100 % according to HP-UX DCE documentation. This made Hewlett-Packard very happy. --- mysys/my_pthread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mysys/my_pthread.c') diff --git a/mysys/my_pthread.c b/mysys/my_pthread.c index 72409b6aa86..dc974719d70 100644 --- a/mysys/my_pthread.c +++ b/mysys/my_pthread.c @@ -420,7 +420,7 @@ int my_pthread_cond_timedwait(pthread_cond_t *cond, struct timespec *abstime) { int error=pthread_cond_timedwait(cond,mutex,abstime); - return error == EAGAIN ? ETIMEDOUT : error; + return (error == EAGAIN || error == -1) ? ETIMEDOUT : error; } #endif /* HAVE_BROKEN_PTHREAD_COND_TIMEDWAIT */ -- cgit v1.2.1