summaryrefslogtreecommitdiff
path: root/ace/SOCK_Acceptor.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-09 01:21:18 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1999-06-09 01:21:18 +0000
commitbea7a8d718a916149d624666ab3eecd752da9a73 (patch)
tree07f03bdbc365b8db540783f8fe34aaf5d008aa87 /ace/SOCK_Acceptor.cpp
parent9a89445f60332dabd261da892d3247d47cd4cec6 (diff)
downloadATCD-bea7a8d718a916149d624666ab3eecd752da9a73.tar.gz
.
Diffstat (limited to 'ace/SOCK_Acceptor.cpp')
-rw-r--r--ace/SOCK_Acceptor.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/ace/SOCK_Acceptor.cpp b/ace/SOCK_Acceptor.cpp
index f86f37c67b5..62f12886438 100644
--- a/ace/SOCK_Acceptor.cpp
+++ b/ace/SOCK_Acceptor.cpp
@@ -159,15 +159,12 @@ ACE_SOCK_Acceptor::shared_accept (ACE_Addr *remote_addr,
if (ACE_BIT_DISABLED (val, ACE_NONBLOCK))
{
- // We need to stash errno here because <ACE::clr_flags>
- // may reset it.
- int error = errno;
-
+ // Save/restore errno.
+ ACE_Errno_Guard error (errno);
// Only disable ACE_NONBLOCK if we weren't in
// non-blocking mode originally.
ACE::clr_flags (handle, ACE_NONBLOCK);
ACE::clr_flags (new_handle, ACE_NONBLOCK);
- errno = error;
}
}
}