Commit b3005bf7 authored by Sinisa@sinisa.nasamreza.org's avatar Sinisa@sinisa.nasamreza.org
Browse files

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 e1288e07
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */