diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-04-10 18:27:37 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-04-10 18:27:37 +0000 |
commit | 8fa5ddc1ce224695461bd6cfe25fd691b5940f7c (patch) | |
tree | 4348585264bd603d66e15d62a4d64e52c7c88350 /examples | |
parent | b012525e80813d0ed704a1346935676fdb6a93d5 (diff) | |
download | ATCD-8fa5ddc1ce224695461bd6cfe25fd691b5940f7c.tar.gz |
*** empty log message ***
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Logger/simple-server/Logging_Acceptor.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/Logger/simple-server/Logging_Acceptor.cpp b/examples/Logger/simple-server/Logging_Acceptor.cpp index 714602fee40..c0e5a061bb7 100644 --- a/examples/Logger/simple-server/Logging_Acceptor.cpp +++ b/examples/Logger/simple-server/Logging_Acceptor.cpp @@ -56,10 +56,12 @@ Logging_Acceptor::handle_input (ACE_HANDLE) // Accept the connection from a client client daemon. - if (this->peer_acceptor_.accept (svc_handler->peer ()) == -1) - ACE_ERROR_RETURN ((LM_ERROR, "%p", "accept failed"), -1); - else if (svc_handler->open () == -1) - svc_handler->close (); + if (this->peer_acceptor_.accept (svc_handler->peer ()) == -1 + || svc_handler->open () == -1) + { + svc_handler->close (); + ACE_ERROR_RETURN ((LM_ERROR, "%p", "accept/open failed"), -1); + } return 0; } |