Browse Source

SIGCLD -> SIGCHLD (reported by s0 and Pierre-Yves)

git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@77 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/release-1.3.13
Jan Kneschke 17 years ago
parent
commit
829aeb9455
  1. 8
      src/server.c

8
src/server.c

@ -71,7 +71,7 @@ static void sigaction_handler(int sig, siginfo_t *si, void *context) {
case SIGTERM: srv_shutdown = 1; break;
case SIGALRM: handle_sig_alarm = 1; break;
case SIGHUP: handle_sig_hup = 1; break;
case SIGCLD: break;
case SIGCHLD: break;
}
}
#elif defined(HAVE_SIGNAL) || defined(HAVE_SIGACTION)
@ -80,7 +80,7 @@ static void signal_handler(int sig) {
case SIGTERM: srv_shutdown = 1; break;
case SIGALRM: handle_sig_alarm = 1; break;
case SIGHUP: handle_sig_hup = 1; break;
case SIGCLD: break;
case SIGCHLD: break;
}
}
#endif
@ -686,7 +686,7 @@ int main (int argc, char **argv) {
sigaction(SIGTERM, &act, NULL);
sigaction(SIGHUP, &act, NULL);
sigaction(SIGALRM, &act, NULL);
sigaction(SIGCLD, &act, NULL);
sigaction(SIGCHLD, &act, NULL);
#elif defined(HAVE_SIGNAL)
/* ignore the SIGPIPE from sendfile() */
@ -695,7 +695,7 @@ int main (int argc, char **argv) {
signal(SIGALRM, signal_handler);
signal(SIGTERM, signal_handler);
signal(SIGHUP, signal_handler);
signal(SIGCLD, signal_handler);
signal(SIGCHLD, signal_handler);
#endif
#ifdef USE_ALARM

Loading…
Cancel
Save