diff options
author | bala <balanatarajan@users.noreply.github.com> | 2003-05-20 17:58:17 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2003-05-20 17:58:17 +0000 |
commit | e350f89f3265e3918f2e2ec970fb88f8a7956df0 (patch) | |
tree | ba804d5413b3d3da7c887e2dee1cf493b5c42ea1 | |
parent | 6ac32e5184afa6cde4cacf3a7f51223fcae739ee (diff) | |
download | ATCD-e350f89f3265e3918f2e2ec970fb88f8a7956df0.tar.gz |
ChangeLogTag:Tue May 20 12:53:59 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu>
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | ace/TP_Reactor.cpp | 18 | ||||
-rw-r--r-- | ace/TP_Reactor.h | 9 |
3 files changed, 37 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index d17c25b2588..cc32ecdaaca 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +Tue May 20 12:53:59 2003 Balachandran Natarajan <bala@dre.vanderbilt.edu> + + * ace/TP_Reactor.h: + * ace/TP_Reactor.cpp: Do not allow users to register signal + handlers with the TP_Reactor. TP_Reactor does not signals at + present and allowing this is simply confusing. We now return a + value of -1 if users try registering a signal handler with the + reactor. Thanks to Carsten Prescher + <prescher@pcdasa73.vs.dasa.de> for pointing this out. + Tue May 20 10:54:10 2003 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu> * tests/Proactor_Test.cpp (open): Changed IPPROTO_TCP to diff --git a/ace/TP_Reactor.cpp b/ace/TP_Reactor.cpp index 8c58233a391..c98d52ace3a 100644 --- a/ace/TP_Reactor.cpp +++ b/ace/TP_Reactor.cpp @@ -309,6 +309,24 @@ ACE_TP_Reactor::remove_handler (const ACE_Handle_Set &handles, } int +ACE_TP_Reactor::register_handler (int, + ACE_Event_Handler *, + ACE_Sig_Action *, + ACE_Event_Handler **, + ACE_Sig_Action *) +{ + ACE_NOTSUP_RETURN (-1); +} + +int +ACE_TP_Reactor::register_handler (const ACE_Sig_Set &, + ACE_Event_Handler *, + ACE_Sig_Action *) +{ + ACE_NOTSUP_RETURN (-1); +} + +int ACE_TP_Reactor::remove_handler (int /*signum*/, ACE_Sig_Action * /*new_disp*/, ACE_Sig_Action * /*old_disp*/, diff --git a/ace/TP_Reactor.h b/ace/TP_Reactor.h index 2b08d87936d..d8799a2fe2b 100644 --- a/ace/TP_Reactor.h +++ b/ace/TP_Reactor.h @@ -248,6 +248,15 @@ public: * these two methods in the TP_Reactor to keep some compilers * silent. */ + virtual int register_handler (int signum, + ACE_Event_Handler *new_sh, + ACE_Sig_Action *new_disp = 0, + ACE_Event_Handler **old_sh = 0, + ACE_Sig_Action *old_disp = 0); + + virtual int register_handler (const ACE_Sig_Set &sigset, + ACE_Event_Handler *new_sh, + ACE_Sig_Action *new_disp = 0); /** * Remove the ACE_Event_Handler currently associated with <signum>. * <sigkey> is ignored in this implementation since there is only |