aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r--sysklogd/syslogd.c8
1 files changed, 5 insertions, 3 deletions
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