aboutsummaryrefslogtreecommitdiff
path: root/src/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/handler.cc')
-rw-r--r--src/handler.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/handler.cc b/src/handler.cc
index 5356d47..b6399c2 100644
--- a/src/handler.cc
+++ b/src/handler.cc
@@ -8,11 +8,13 @@ sigset_t BLOCK_HANDLER;
void signal_init()
{
+ /* Install the signal handlers */
+
sigemptyset(&BLOCK_HANDLER);
sigaddset(&BLOCK_HANDLER, SIGINT);
sigaddset(&BLOCK_HANDLER, SIGTSTP);
sigaddset(&BLOCK_HANDLER, SIGCHLD);
-
+
Signal(SIGINT, sigint_handler); /* ctrl-c */
Signal(SIGTSTP, sigtstp_handler); /* ctrl-z */
Signal(SIGCHLD, sigchld_handler); /* Terminated or stopped child */