Skip to content

Commit 278a896

Browse files
committed
* 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
1 parent 45d9df5 commit 278a896

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/mpm/mpmt_os2/mpmt_os2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,13 @@ static char master_main()
308308
rc = DosWaitChild(DCWA_PROCESSTREE, DCWW_NOWAIT, &proc_rc, &child_pid, 0);
309309

310310
if (rc == 0) {
311+
ap_unset_pid_table(child_pid);
311312
/* A child has terminated, remove its scoreboard entry & terminate if necessary */
312313
for (slot=0; ap_scoreboard_image->parent[slot].pid != child_pid && slot < HARD_SERVER_LIMIT; slot++);
313314

314315
if (slot < HARD_SERVER_LIMIT) {
315316
ap_scoreboard_image->parent[slot].pid = 0;
316317
ap_scoreboard_image->parent[slot].quiescing = 0;
317-
ap_unset_pid_table(child_pid);
318318

319319
if (proc_rc.codeTerminate == TC_EXIT) {
320320
/* Child terminated normally, check its exit code and

0 commit comments

Comments
 (0)