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
commit67bf6eec4ff4d0bc9d1bbe0b59533790a12b40d6 (patch)
tree9872637dec197927a9ca350306d746a23709202a /examples
parentb04ebbbcabc2a64a893337882c9fe214334273b9 (diff)
downloadATCD-67bf6eec4ff4d0bc9d1bbe0b59533790a12b40d6.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;
}