summaryrefslogtreecommitdiff
path: root/examples/Reactor/Misc
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2000-11-15 02:17:05 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2000-11-15 02:17:05 +0000
commitdbaf13260c4187c8239b6f7369e1f148fdffede2 (patch)
tree77adecda4576099a0bd9a1b3f40520a21125b588 /examples/Reactor/Misc
parent33d4fb36e149e0b0a95fc41e6f40f20af90febca (diff)
downloadATCD-dbaf13260c4187c8239b6f7369e1f148fdffede2.tar.gz
ChangeLogTag:Tue Nov 14 17:55:52 2000 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'examples/Reactor/Misc')
-rw-r--r--examples/Reactor/Misc/test_demuxing.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/examples/Reactor/Misc/test_demuxing.cpp b/examples/Reactor/Misc/test_demuxing.cpp
index 345ffc85a95..9444175bf3f 100644
--- a/examples/Reactor/Misc/test_demuxing.cpp
+++ b/examples/Reactor/Misc/test_demuxing.cpp
@@ -111,13 +111,9 @@ Sig_Handler::shutdown (ACE_HANDLE, ACE_Reactor_Mask)
// This method handles all the signals that are being caught by this
// object. In our simple example, we are simply catching SIGALRM,
-// SIGINT, and SIGQUIT. Anything else is logged and ignored.
-//
-// There are several advantages to using this approach. First, the
-// behavior triggered by the signal is handled in the main event loop,
-// rather than in the signal handler. Second, the ACE_Reactor's
-// signal handling mechanism eliminates the need to use global signal
-// handler functions and data.
+// SIGINT, and SIGQUIT. Anything else is logged and ignored. Note
+// that the ACE_Reactor's signal handling mechanism eliminates the
+// need to use global signal handler functions and data.
int
Sig_Handler::handle_signal (int signum, siginfo_t *, ucontext_t *)
@@ -134,7 +130,8 @@ Sig_Handler::handle_signal (int signum, siginfo_t *, ucontext_t *)
// Tell the ACE_Reactor to enable the ready bit for
// this->handle_. The ACE_Reactor will subsequently call the
// <Sig_Handler::handle_input> method from within its event
- // loop.
+ // loop, i.e., the behavior triggered by the signal is handled
+ // in the main event loop, rather than in the signal handler.
return ACE_Reactor::instance ()->ready_ops
(this->handle_,
ACE_Event_Handler::READ_MASK,