Commit 546e0e7e authored by Jim Jagielski's avatar Jim Jagielski
Browse files

Only remove from pid table when we've reaped a child,

that is, when we know it's gone.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@544149 13f79535-47bb-0310-9956-ffa450edef68
parent cb2bb54a
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -5175,7 +5175,6 @@ static void perform_idle_server_maintenance(void)
                    pid = ps->pid;
                    if (in_pid_table(pid)) {
                        kill(pid, SIG_TIMEOUT_KILL);
                        unset_pid_table(pid);
                    }
                    else {
                        ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, server_conf,
@@ -5200,7 +5199,6 @@ static void perform_idle_server_maintenance(void)
#ifdef TPF
            ap_update_child_status(to_kill, SERVER_DEAD, (request_rec *)NULL);
#endif
            unset_pid_table(pid);
        }
        else {
            ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, server_conf,