From a7da3d2a7dcf8b87859598eba14e0aa184c3bb66 Mon Sep 17 00:00:00 2001 From: Manoj Kasichainula Date: Fri, 27 Aug 1999 21:28:16 +0000 Subject: [PATCH] Be consistent with how we indicate child death and use status = SERVER_DEAD instead of pid = 0. I don't think this actually caused any bugs, but just in case... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83818 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/dexter/dexter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/mpm/dexter/dexter.c b/server/mpm/dexter/dexter.c index b706917142..cbbf0a6ba5 100644 --- a/server/mpm/dexter/dexter.c +++ b/server/mpm/dexter/dexter.c @@ -319,12 +319,12 @@ static void reclaim_child_processes(int terminate) for (i = 0; i < max_daemons_limit; ++i) { int pid = ap_scoreboard_image[i].pid; - if (pid == my_pid || pid == 0) + if (ap_scoreboard_image[i].status == SERVER_DEAD) continue; waitret = waitpid(pid, &status, WNOHANG); if (waitret == pid || waitret == -1) { - ap_scoreboard_image[i].pid = 0; + ap_scoreboard_image[i].status = SERVER_DEAD; continue; } ++not_dead_yet; -- 2.40.0