diff options
author | Jim Jagielski <jim@apache.org> | 2013-11-15 20:29:11 +0100 |
---|---|---|
committer | Jim Jagielski <jim@apache.org> | 2013-11-15 20:29:11 +0100 |
commit | 62bb83d16fd84c439b188bdc1a265cb3094f1c14 (patch) | |
tree | 2c1763504d56d6ba04ea300d0cd7f3c08ac85562 | |
parent | [Doc][trunk] Introducing french translation for misc/password_encryption (diff) | |
download | apache2-62bb83d16fd84c439b188bdc1a265cb3094f1c14.tar.xz apache2-62bb83d16fd84c439b188bdc1a265cb3094f1c14.zip |
PR: 54852. Only use a dummy_connection for idle processes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1542379 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | CHANGES | 3 | ||||
-rw-r--r-- | server/mpm_unix.c | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -4,6 +4,9 @@ Changes with Apache 2.5.0 *) Fix potential rejection of valid MaxMemFree and ThreadStackSize directives. [Mike Rumph <mike.rumph oracle.com>] + *) prefork: Fix long delays when doing a graceful restart. + PR 54852 [Jim Jagielski, Arkadiusz Miskiewicz <arekm maven pl>] + *) core: Add parse_errorlog_arg callback to ap_errorlog_provider to allow providers to check the ErrorLog argument. [Jan Kaluza] diff --git a/server/mpm_unix.c b/server/mpm_unix.c index a70c2714ae..ca880e5db7 100644 --- a/server/mpm_unix.c +++ b/server/mpm_unix.c @@ -742,7 +742,12 @@ void ap_mpm_pod_killpg(ap_pod_t *pod, int num) * readers stranded (a number of them could be tied up for * a while serving time-consuming requests) */ + /* Recall: we only worry about IDLE child processes here */ for (i = 0; i < num && rv == APR_SUCCESS; i++) { + if (ap_scoreboard_image->servers[i][0].status != SERVER_READY || + ap_scoreboard_image->servers[i][0].pid == 0) { + continue; + } rv = dummy_connection(pod); } } |