From d39d12099805ff4e0bb8841e951fc758d9b517c7 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Wed, 13 Sep 2000 14:14:29 +0000 Subject: Make syslogd ignore SIGCLD only if SIGCLD is defined. This should fix SPARC. Also ignore SIGCHLD - it must have been meant. --- sysklogd/syslogd.c | 3 +++ syslogd.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 8648da271..d647866cb 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -301,7 +301,10 @@ static void doSyslogd (void) signal (SIGTERM, quit_signal); signal (SIGQUIT, quit_signal); signal (SIGHUP, SIG_IGN); + signal (SIGCHLD, SIG_IGN); +#ifdef SIGCLD signal (SIGCLD, SIG_IGN); +#endif signal (SIGALRM, domark); alarm (MarkInterval); diff --git a/syslogd.c b/syslogd.c index 8648da271..d647866cb 100644 --- a/syslogd.c +++ b/syslogd.c @@ -301,7 +301,10 @@ static void doSyslogd (void) signal (SIGTERM, quit_signal); signal (SIGQUIT, quit_signal); signal (SIGHUP, SIG_IGN); + signal (SIGCHLD, SIG_IGN); +#ifdef SIGCLD signal (SIGCLD, SIG_IGN); +#endif signal (SIGALRM, domark); alarm (MarkInterval); -- cgit v1.2.3