diff options
author | fluxgen <fluxgen> | 2002-10-12 13:28:03 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-10-12 13:28:03 (GMT) |
commit | 6ddf8995f743ff329a99dfc88c960c9ad6036f04 (patch) | |
tree | c6a44a89f90b74c682b45fdee1b050aee1007138 | |
parent | 1e44f00f5c13026c17e3554d51e68e380c2d4b9f (diff) | |
download | fluxbox_pavel-6ddf8995f743ff329a99dfc88c960c9ad6036f04.zip fluxbox_pavel-6ddf8995f743ff329a99dfc88c960c9ad6036f04.tar.bz2 |
extra checking on signal num
-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; |