summaryrefslogtreecommitdiff
path: root/ace
diff options
context:
space:
mode:
authorSteve Huston <shuston@riverace.com>1997-09-25 22:05:59 +0000
committerSteve Huston <shuston@riverace.com>1997-09-25 22:05:59 +0000
commit2f79f1a66f047a3db8f3c094439c611b0a7f85e6 (patch)
tree4b0dc31106a219a05d764c5aea47c0cbc8fe6ebe /ace
parent3a68d7a3fd1d47a71ecf81bd99835ed0deb88cfc (diff)
downloadATCD-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.i4
1 files changed, 2 insertions, 2 deletions
diff --git a/ace/OS.i b/ace/OS.i
index 5dff1ca7602..b424cd91147 100644
--- a/ace/OS.i
+++ b/ace/OS.i
@@ -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)