Make syslogd ignore SIGCLD only if SIGCLD is defined. This should fix SPARC.

Also ignore SIGCHLD - it must have been meant.
This commit is contained in:
Pavel Roskin 2000-09-13 14:14:29 +00:00
parent 5d513f7256
commit d39d120998
2 changed files with 6 additions and 0 deletions

View File

@ -301,7 +301,10 @@ static void doSyslogd (void)
signal (SIGTERM, quit_signal); signal (SIGTERM, quit_signal);
signal (SIGQUIT, quit_signal); signal (SIGQUIT, quit_signal);
signal (SIGHUP, SIG_IGN); signal (SIGHUP, SIG_IGN);
signal (SIGCHLD, SIG_IGN);
#ifdef SIGCLD
signal (SIGCLD, SIG_IGN); signal (SIGCLD, SIG_IGN);
#endif
signal (SIGALRM, domark); signal (SIGALRM, domark);
alarm (MarkInterval); alarm (MarkInterval);

View File

@ -301,7 +301,10 @@ static void doSyslogd (void)
signal (SIGTERM, quit_signal); signal (SIGTERM, quit_signal);
signal (SIGQUIT, quit_signal); signal (SIGQUIT, quit_signal);
signal (SIGHUP, SIG_IGN); signal (SIGHUP, SIG_IGN);
signal (SIGCHLD, SIG_IGN);
#ifdef SIGCLD
signal (SIGCLD, SIG_IGN); signal (SIGCLD, SIG_IGN);
#endif
signal (SIGALRM, domark); signal (SIGALRM, domark);
alarm (MarkInterval); alarm (MarkInterval);