diff options
author | unknown <Sinisa@sinisa.nasamreza.org> | 2002-05-16 18:58:50 +0300 |
---|---|---|
committer | unknown <Sinisa@sinisa.nasamreza.org> | 2002-05-16 18:58:50 +0300 |
commit | 72ed6bc3974c3c7f112aa9704d073b4bbb86ec35 (patch) | |
tree | 195964c87924ec00b3111d2f558fd295c110af78 /mysys/my_pthread.c | |
parent | c23bc103f0abf9ddfc0899d477398dd4c55d8c84 (diff) | |
download | mariadb-git-72ed6bc3974c3c7f112aa9704d073b4bbb86ec35.tar.gz |
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.
Diffstat (limited to 'mysys/my_pthread.c')
-rw-r--r-- | mysys/my_pthread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |