diff options
Diffstat (limited to 'sysklogd')
-rw-r--r-- | sysklogd/klogd.c | 7 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index d65b6f9..6a675b8 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c @@ -57,9 +57,10 @@ int klogd_main(int argc, char **argv) openlog("kernel", 0, LOG_KERN); /* Set up sig handlers */ - signal(SIGINT, klogd_signal); - signal(SIGKILL, klogd_signal); - signal(SIGTERM, klogd_signal); + bb_signals(0 + + (1 << SIGINT) + + (1 << SIGTERM) + , klogd_signal); signal(SIGHUP, SIG_IGN); /* "Open the log. Currently a NOP." */ diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 457f381..c6e0571 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -540,9 +540,11 @@ static void do_syslogd(void) int sock_fd; /* Set up signal handlers */ - signal(SIGINT, quit_signal); - signal(SIGTERM, quit_signal); - signal(SIGQUIT, quit_signal); + bb_signals(0 + + (1 << SIGINT) + + (1 << SIGTERM) + + (1 << SIGQUIT) + , quit_signal); signal(SIGHUP, SIG_IGN); /* signal(SIGCHLD, SIG_IGN); - why? */ #ifdef SYSLOGD_MARK |