diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-24 16:36:01 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-24 16:36:01 +0300 |
commit | 400d8bb45ee25ce226bb343a3dfaab84e6d3a8e1 (patch) | |
tree | aa3cdc9a663f1ac2467803fc215899d86ed1db74 /sysklogd/klogd.c | |
parent | d553faf5a53cf9d72e16fc789451a92a797f1b70 (diff) |
less,klogd,syslogd,nc,tcpudp: exit on signal by killing itself, not exit(1)
*: minor shrink
Diffstat (limited to 'sysklogd/klogd.c')
-rw-r--r-- | sysklogd/klogd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/klogd.c b/sysklogd/klogd.c index 6a675b8b3..01d597178 100644 --- a/sysklogd/klogd.c +++ b/sysklogd/klogd.c @@ -26,7 +26,7 @@ static void klogd_signal(int sig ATTRIBUTE_UNUSED) klogctl(7, NULL, 0); klogctl(0, NULL, 0); syslog(LOG_NOTICE, "klogd: exiting"); - exit(EXIT_SUCCESS); + kill_myself_with_sig(sig); } #define log_buffer bb_common_bufsiz1 |