diff options
author | Steve Huston <shuston@riverace.com> | 1997-09-25 22:05:59 +0000 |
---|---|---|
committer | Steve Huston <shuston@riverace.com> | 1997-09-25 22:05:59 +0000 |
commit | 2f79f1a66f047a3db8f3c094439c611b0a7f85e6 (patch) | |
tree | 4b0dc31106a219a05d764c5aea47c0cbc8fe6ebe /ace | |
parent | 3a68d7a3fd1d47a71ecf81bd99835ed0deb88cfc (diff) | |
download | ATCD-2f79f1a66f047a3db8f3c094439c611b0a7f85e6.tar.gz |
In ACE_OS::cond_timedwait, DCE Draft 4 threads return EAGAIN (not ETIMEDOUT)
so adjust EAGAIN (in addition to ETIMEDOUT) to ETIME.
Diffstat (limited to 'ace')
-rw-r--r-- | ace/OS.i | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1834,8 +1834,8 @@ ACE_OS::cond_timedwait (ACE_cond_t *cv, int, -1, result); # endif /* ACE_HAS_DCE_DRAFT4_THREADS */ // We need to adjust this to make the POSIX and Solaris return - // values consistent. - if (result == -1 && errno == ETIMEDOUT) + // values consistent. EAGAIN is from DCE DRAFT4 (HP-UX 10.20 and down). + if (result == -1 && (errno == ETIMEDOUT || errno == EAGAIN)) errno = ETIME; #elif defined (ACE_HAS_STHREADS) |