aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/klogd.c7
-rw-r--r--sysklogd/syslogd.c8
2 files changed, 9 insertions, 6 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c
index d65b6f9a0..6a675b8b3 100644
--- a/sysklogd/klogd.c
+++ b/sysklogd/klogd.c
@@ -57,9 +57,10 @@ int klogd_main(int argc, char **argv)
57 openlog("kernel", 0, LOG_KERN); 57 openlog("kernel", 0, LOG_KERN);
58 58
59 /* Set up sig handlers */ 59 /* Set up sig handlers */
60 signal(SIGINT, klogd_signal); 60 bb_signals(0
61 signal(SIGKILL, klogd_signal); 61 + (1 << SIGINT)
62 signal(SIGTERM, klogd_signal); 62 + (1 << SIGTERM)
63 , klogd_signal);
63 signal(SIGHUP, SIG_IGN); 64 signal(SIGHUP, SIG_IGN);
64 65
65 /* "Open the log. Currently a NOP." */ 66 /* "Open the log. Currently a NOP." */
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index 457f38103..c6e057138 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -540,9 +540,11 @@ static void do_syslogd(void)
540 int sock_fd; 540 int sock_fd;
541 541
542 /* Set up signal handlers */ 542 /* Set up signal handlers */
543 signal(SIGINT, quit_signal); 543 bb_signals(0
544 signal(SIGTERM, quit_signal); 544 + (1 << SIGINT)
545 signal(SIGQUIT, quit_signal); 545 + (1 << SIGTERM)
546 + (1 << SIGQUIT)
547 , quit_signal);
546 signal(SIGHUP, SIG_IGN); 548 signal(SIGHUP, SIG_IGN);
547 /* signal(SIGCHLD, SIG_IGN); - why? */ 549 /* signal(SIGCHLD, SIG_IGN); - why? */
548#ifdef SYSLOGD_MARK 550#ifdef SYSLOGD_MARK