summaryrefslogtreecommitdiff
path: root/ACE/ace/Strategies_T.cpp
diff options
context:
space:
mode:
authorvzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-03-17 12:21:14 +0000
committervzykov <vzykov@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2010-03-17 12:21:14 +0000
commit3a7b3e4e0a4739c1326e04498fcc0c91faa885bf (patch)
tree008ce4e7b7ac719e57dce5f90c151c784b974155 /ACE/ace/Strategies_T.cpp
parent3f8b10924ec2dd86b94a260a6031723263471d13 (diff)
downloadATCD-3a7b3e4e0a4739c1326e04498fcc0c91faa885bf.tar.gz
Wed Mar 17 11:58:10 UTC 2010 Vladimir Zykov <vladimir.zykov@prismtech.com>
Committed the changes that I had to revert before x.7.7. * ace/Strategies_T.cpp: Changed the code so that close() is called in case of failure instead of destroy(). * ace/Connector.cpp: * ace/Connector.h: Changed the fix for bug#3731. Now NBCH adds a reference in constructor and removes it in destructor if the SVC_HANDLER that it owns is reference counted. This is a cleaner solution than the one used before. * tests/NonBlocking_Conn_Test.h: * tests/Process_Strategy_Test.cpp: * tests/NonBlocking_Conn_Test.cpp: Extended NonBlocking_Conn_Test and changed Process_Strategy_Test because of the change in Strategies_T.cpp. * tests/MT_NonBlocking_Connect_Test.cpp: * tests/tests.mpc: * tests/run_test.lst: Added a new test. This can be a reproducer for the bug#3731 which currently doesn't have its own test.
Diffstat (limited to 'ACE/ace/Strategies_T.cpp')
-rw-r--r--ACE/ace/Strategies_T.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ACE/ace/Strategies_T.cpp b/ACE/ace/Strategies_T.cpp
index 6aaef5eb2cc..4addb7d3774 100644
--- a/ACE/ace/Strategies_T.cpp
+++ b/ACE/ace/Strategies_T.cpp
@@ -439,7 +439,7 @@ ACE_Process_Strategy<SVC_HANDLER>::activate_svc_handler (SVC_HANDLER *svc_handle
case -1:
{
ACE_Errno_Guard error (errno);
- svc_handler->destroy ();
+ svc_handler->close ();
}
ACE_ERROR_RETURN ((LM_ERROR,
ACE_TEXT ("%p\n"),
@@ -462,7 +462,7 @@ ACE_Process_Strategy<SVC_HANDLER>::activate_svc_handler (SVC_HANDLER *svc_handle
default: // In parent process.
// We need to close down the <SVC_HANDLER> here because it's
// running in the child.
- svc_handler->destroy ();
+ svc_handler->close ();
return 0;
}
}