Commit 72ed6bc3 authored by unknown's avatar unknown

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.


parent c23bc103
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment