aboutsummaryrefslogtreecommitdiff
path: root/src/handler.cc
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-09-01 07:58:49 +0000
committer_ov4 <ov4@ov4.org>2026-09-01 07:58:49 +0000
commit9a09c0bfc5956ed57fa4c26f84babb6778fa8a34 (patch)
tree9f11e72fa682dbaad744a4b617500d924e8436e4 /src/handler.cc
parentc1733952f1bbb567b335109f51fb66a73abfedd3 (diff)
path
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 */