]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Only remove from pid table when we've reaped a child,
authorJim Jagielski <jim@apache.org>
Mon, 4 Jun 2007 13:18:54 +0000 (13:18 +0000)
committerJim Jagielski <jim@apache.org>
Mon, 4 Jun 2007 13:18:54 +0000 (13:18 +0000)
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

src/main/http_main.c

index 3a84b40cba5a79c152c9795c2bed75397d41b503..f0ac8fc06234617592ac25e7b89e23d1ba59fb24 100644 (file)
@@ -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,