diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/SignalHandler.cc | 4 |
1 files changed, 3 insertions, 1 deletions
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 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: SignalHandler.cc,v 1.2 2002/08/17 22:15:31 fluxgen Exp $ | 22 | // $Id: SignalHandler.cc,v 1.3 2002/10/12 13:28:03 fluxgen Exp $ |
23 | 23 | ||
24 | #include "SignalHandler.hh" | 24 | #include "SignalHandler.hh" |
25 | 25 | ||
@@ -68,6 +68,8 @@ void SignalHandler::removeHandler(int signum) { | |||
68 | } | 68 | } |
69 | 69 | ||
70 | void SignalHandler::handleSignal(int signum) { | 70 | void SignalHandler::handleSignal(int signum) { |
71 | if (signum >= NSIG) | ||
72 | return; | ||
71 | // make sure we got a handler for this signal | 73 | // make sure we got a handler for this signal |
72 | if (s_signal_handler[signum] != 0) { | 74 | if (s_signal_handler[signum] != 0) { |
73 | SignalEvent sigev; | 75 | SignalEvent sigev; |