From: Jim Jagielski Date: Fri, 1 Jun 2007 22:02:48 +0000 (+0000) Subject: more cleanus of pid_table for killed/waited-for kiddies X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=903837ed17edefdea8b1ec3cd2f47641aefb1bbd;p=thirdparty%2Fapache%2Fhttpd.git more cleanus of pid_table for killed/waited-for kiddies git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@543634 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/main/http_main.c b/src/main/http_main.c index 845999747f1..00afe7b2aa9 100644 --- a/src/main/http_main.c +++ b/src/main/http_main.c @@ -2829,6 +2829,7 @@ static void reclaim_child_processes(int terminate) waitret = waitpid(pid, &status, WNOHANG); if (waitret == pid || waitret == -1) { ap_scoreboard_image->parent[i].pid = 0; + unset_pid_table(pid); continue; } ++not_dead_yet; @@ -5173,6 +5174,7 @@ 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,