From: Manoj Kasichainula Date: Fri, 17 Sep 1999 23:32:11 +0000 (+0000) Subject: Instead of blocking all signals in child_main, we were unblocking them; X-Git-Tag: 1.3.10~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf339f0c02715e3ee5d701ddf0faa3c80367a1d3;p=thirdparty%2Fapache%2Fhttpd.git Instead of blocking all signals in child_main, we were unblocking them; this fixes that. Reported by Dave Colasurdo . git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83904 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/dexter/dexter.c b/server/mpm/dexter/dexter.c index 82e72637ca5..df33c898a82 100644 --- a/server/mpm/dexter/dexter.c +++ b/server/mpm/dexter/dexter.c @@ -997,7 +997,7 @@ static void child_main(int child_num_arg) /*done with init critical section */ /* All threads should mask signals out, accoring to sigwait(2) man page */ - sigemptyset(&sig_mask); + sigfillset(&sig_mask); if (pthread_sigmask(SIG_SETMASK, &sig_mask, NULL) != 0) { ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf, "pthread_sigmask"); diff --git a/server/mpm/mpmt_pthread/mpmt_pthread.c b/server/mpm/mpmt_pthread/mpmt_pthread.c index 908cf02e517..bff711e9e3d 100644 --- a/server/mpm/mpmt_pthread/mpmt_pthread.c +++ b/server/mpm/mpmt_pthread/mpmt_pthread.c @@ -935,7 +935,7 @@ static void child_main(int child_num_arg) /*done with init critical section */ /* All threads should mask signals out, accoring to sigwait(2) man page */ - sigemptyset(&sig_mask); + sigfillset(&sig_mask); if (pthread_sigmask(SIG_SETMASK, &sig_mask, NULL) != 0) { ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf, "pthread_sigmask");