From: Jeff Trawick Date: Tue, 19 Mar 2002 21:31:04 +0000 (+0000) Subject: "apachectl stop" shouldn't send the gracefully-terminate char down X-Git-Tag: 2.0.34~237 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cfcab38a7789b3374b10a237cf3c4ba6accbe4c7;p=apache "apachectl stop" shouldn't send the gracefully-terminate char down the pod... the child processes need to know that it isn't a graceful termination and they shouldn't wait for old connections to finish git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94024 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/worker/worker.c b/server/mpm/worker/worker.c index a06e5b4c76..b2a60ac08d 100644 --- a/server/mpm/worker/worker.c +++ b/server/mpm/worker/worker.c @@ -1457,8 +1457,10 @@ int ap_mpm_run(apr_pool_t *_pconf, apr_pool_t *plog, server_rec *s) if (shutdown_pending) { /* Time to gracefully shut down: * Kill child processes, tell them to call child_exit, etc... + * (By "gracefully" we don't mean graceful in the same sense as + * "apachectl graceful" where we allow old connections to finish.) */ - ap_mpm_pod_killpg(pod, ap_daemons_limit, TRUE); + ap_mpm_pod_killpg(pod, ap_daemons_limit, FALSE); ap_reclaim_child_processes(1); /* Start with SIGTERM */ if (!child_fatal) {