diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-11-23 02:09:14 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-11-23 02:09:14 +0000 |
commit | 1b9bf25ac6d0a926a880b6d4dbf65eafeb80e880 (patch) | |
tree | b0141174a0a992ad5b149d7285bc2ed976faf9a3 /ace/Acceptor.cpp | |
parent | ae1b0db791e7cbc52614cd135a8876f55c17c80f (diff) | |
download | ATCD-1b9bf25ac6d0a926a880b6d4dbf65eafeb80e880.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Acceptor.cpp')
-rw-r--r-- | ace/Acceptor.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ace/Acceptor.cpp b/ace/Acceptor.cpp index 3f93a231775..53297383d74 100644 --- a/ace/Acceptor.cpp +++ b/ace/Acceptor.cpp @@ -257,14 +257,13 @@ template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> int ACE_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::activate_svc_handler (SVC_HANDLER *svc_handler) { - ACE_Trace::start_tracing (); ACE_TRACE ("ACE_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::activate_svc_handler"); int result = 0; // See if we should enable non-blocking I/O on the <svc_handler>'s // peer. - if (ACE_BIT_ENABLED (this->flags_, ACE_NONBLOCK) != 0) + if (ACE_BIT_ENABLED (this->flags_, ACE_NONBLOCK)) { if (svc_handler->peer ().enable (ACE_NONBLOCK) == -1) result = -1; @@ -273,13 +272,12 @@ ACE_Acceptor<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::activate_svc_handler else if (svc_handler->peer ().disable (ACE_NONBLOCK) == -1) result = -1; - if (svc_handler->open ((void *) this) == -1) + if (result == 0 && svc_handler->open ((void *) this) == -1) result = -1; - + if (result == -1) svc_handler->close (0); - ACE_Trace::stop_tracing (); return result; } |