From 6ddf8995f743ff329a99dfc88c960c9ad6036f04 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 12 Oct 2002 13:28:03 +0000 Subject: extra checking on signal num --- src/SignalHandler.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SignalHandler.cc b/src/SignalHandler.cc index 2ef2cd6..c160243 100644 --- a/src/SignalHandler.cc +++ b/src/SignalHandler.cc @@ -19,7 +19,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: SignalHandler.cc,v 1.2 2002/08/17 22:15:31 fluxgen Exp $ +// $Id: SignalHandler.cc,v 1.3 2002/10/12 13:28:03 fluxgen Exp $ #include "SignalHandler.hh" @@ -68,6 +68,8 @@ void SignalHandler::removeHandler(int signum) { } void SignalHandler::handleSignal(int signum) { + if (signum >= NSIG) + return; // make sure we got a handler for this signal if (s_signal_handler[signum] != 0) { SignalEvent sigev; -- cgit v0.11.2