summaryrefslogtreecommitdiff
path: root/ACE/ace/ACE.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2008-11-14 09:41:52 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2008-11-14 09:41:52 +0000
commiteaeac78911bded6ecc3af49443b7d0cb54bb503f (patch)
treef09bff7eb4618e00087e5162382dfe41177bbbbb /ACE/ace/ACE.cpp
parentb9b0ad8a9428deedd2cb0d3fc40432c15988a758 (diff)
downloadATCD-eaeac78911bded6ecc3af49443b7d0cb54bb503f.tar.gz
Thu Nov 13 09:41:30 UTC 2008 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/ACE.cpp')
-rw-r--r--ACE/ace/ACE.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/ACE/ace/ACE.cpp b/ACE/ace/ACE.cpp
index 87c50d06d42..d656b031f5a 100644
--- a/ACE/ace/ACE.cpp
+++ b/ACE/ace/ACE.cpp
@@ -2731,9 +2731,7 @@ ACE::handle_timed_accept (ACE_HANDLE listener,
return -1;
/* NOTREACHED */
case 0:
- if (timeout != 0
- && timeout->sec () == 0
- && timeout->usec () == 0)
+ if (timeout != 0 && *timeout == ACE_Time_Value::zero)
errno = EWOULDBLOCK;
else
errno = ETIMEDOUT;