diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-05-16 18:58:50 +0300 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-05-16 18:58:50 +0300 |
commit | b3005bf70f6157c2ca335ce548f626d819b693f2 (patch) | |
tree | 195964c87924ec00b3111d2f558fd295c110af78 /mysys | |
parent | e1288e07ac54d38390619c4f71c1c17be6eac9d0 (diff) | |
download | mariadb-git-b3005bf70f6157c2ca335ce548f626d819b693f2.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')
-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 */ |