summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-12-17 19:08:39 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-12-17 19:08:39 +0000
commit8d80a8355b6714ee5514dc96fea917bb517c00d8 (patch)
tree9872637dec197927a9ca350306d746a23709202a /examples
parentfdf46728cbcf67efb42a339989d4433324d42668 (diff)
downloadATCD-8d80a8355b6714ee5514dc96fea917bb517c00d8.tar.gz
.
Diffstat (limited to 'examples')
-rw-r--r--examples/Reactor/Misc/test_demuxing.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/examples/Reactor/Misc/test_demuxing.cpp b/examples/Reactor/Misc/test_demuxing.cpp
index d0ae7c8c5a0..91c2c3907d5 100644
--- a/examples/Reactor/Misc/test_demuxing.cpp
+++ b/examples/Reactor/Misc/test_demuxing.cpp
@@ -118,12 +118,6 @@ Sig_Handler::shutdown (ACE_HANDLE, ACE_Reactor_Mask)
int
Sig_Handler::handle_signal (int signum, siginfo_t *, ucontext_t *)
{
- // @@ Note that this code is not portable to all OS platforms since
- // it uses print statements within signal handler context.
- ACE_DEBUG ((LM_DEBUG,
- "(%t) received signal %S\n",
- signum));
-
switch (signum)
{
case SIGALRM:
@@ -140,16 +134,12 @@ Sig_Handler::handle_signal (int signum, siginfo_t *, ucontext_t *)
ACE_Event_Handler::READ_MASK,
ACE_Reactor::ADD_MASK);
case SIGQUIT:
- ACE_DEBUG ((LM_DEBUG,
- "(%t) %S: shutting down signal tester\n",
- signum));
- ACE_Reactor::end_event_loop();
+ ACE_Reactor::end_event_loop ();
break;
default:
- ACE_DEBUG ((LM_DEBUG,
- "(%t) %S: not handled, returning to program\n",
- signum));
+ ACE_ASSERT (!"invalid signal");
break;
+ /* NOTREACHED */
}
return 0;
}