summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuediger Pluem <rpluem@apache.org>2007-06-02 21:13:27 +0000
committerRuediger Pluem <rpluem@apache.org>2007-06-02 21:13:27 +0000
commit7aa6c2295ab5f7803b408fd6d0190436f80d5cac (patch)
treeaa3b55ea57d84f96d99dbb1fa4b2aa9b1cb6abce
parent6f342d9c0b4d98b792aef1f70cacf3817d9546f6 (diff)
downloadhttpd-7aa6c2295ab5f7803b408fd6d0190436f80d5cac.tar.gz
* It does not matter if this pid is still in the scoreboard or not. We need to
remove it from our pid table in any case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-pid-table@543785 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--server/mpm/mpmt_os2/mpmt_os2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/mpm/mpmt_os2/mpmt_os2.c b/server/mpm/mpmt_os2/mpmt_os2.c
index 1d6377fc60..1d4a43d4b0 100644
--- a/server/mpm/mpmt_os2/mpmt_os2.c
+++ b/server/mpm/mpmt_os2/mpmt_os2.c
@@ -308,13 +308,13 @@ static char master_main()
rc = DosWaitChild(DCWA_PROCESSTREE, DCWW_NOWAIT, &proc_rc, &child_pid, 0);
if (rc == 0) {
+ ap_unset_pid_table(child_pid);
/* A child has terminated, remove its scoreboard entry & terminate if necessary */
for (slot=0; ap_scoreboard_image->parent[slot].pid != child_pid && slot < HARD_SERVER_LIMIT; slot++);
if (slot < HARD_SERVER_LIMIT) {
ap_scoreboard_image->parent[slot].pid = 0;
ap_scoreboard_image->parent[slot].quiescing = 0;
- ap_unset_pid_table(child_pid);
if (proc_rc.codeTerminate == TC_EXIT) {
/* Child terminated normally, check its exit code and