summaryrefslogtreecommitdiff
path: root/ace/Asynch_Acceptor.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2005-12-21 18:11:29 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2005-12-21 18:11:29 +0000
commitef1dc72a791425dbd21a56f95e83e3a7b08ebe43 (patch)
treec27d9b6365296143c7ffa1607f00f4ff49b3a37a /ace/Asynch_Acceptor.cpp
parent7a666c160fd3c6e09eccef7d0efb096cd226ece2 (diff)
downloadATCD-ef1dc72a791425dbd21a56f95e83e3a7b08ebe43.tar.gz
ChangeLogTag:Tue Dec 20 20:24:39 2005 Douglas C. Schmidt <schmidt@cs.wustl.edu>
Diffstat (limited to 'ace/Asynch_Acceptor.cpp')
-rw-r--r--ace/Asynch_Acceptor.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/ace/Asynch_Acceptor.cpp b/ace/Asynch_Acceptor.cpp
index 863ce7e4332..57c215c05d6 100644
--- a/ace/Asynch_Acceptor.cpp
+++ b/ace/Asynch_Acceptor.cpp
@@ -174,7 +174,7 @@ ACE_Asynch_Acceptor<HANDLER>::open (const ACE_INET_Addr &address,
return 0;
}
-template <class HANDLER> void
+template <class HANDLER> int
ACE_Asynch_Acceptor<HANDLER>::set_handle (ACE_HANDLE listen_handle)
{
ACE_TRACE ("ACE_Asynch_Acceptor<>::set_handle");
@@ -187,9 +187,10 @@ ACE_Asynch_Acceptor<HANDLER>::set_handle (ACE_HANDLE listen_handle)
this->listen_handle_,
0,
this->proactor ()) == -1)
- ACE_ERROR ((LM_ERROR,
- ACE_LIB_TEXT ("%p\n"),
- ACE_LIB_TEXT ("ACE_Asynch_Accept::open")));
+ ACE_ERROR_RETURN ((LM_ERROR,
+ ACE_LIB_TEXT ("%p\n"),
+ ACE_LIB_TEXT ("ACE_Asynch_Accept::open")),
+ -1);
}
template <class HANDLER> ACE_HANDLE