From: Manoj Kasichainula Date: Fri, 27 Aug 1999 21:28:16 +0000 (+0000) Subject: Be consistent with how we indicate child death and use status = X-Git-Tag: 1.3.10~366 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a7da3d2a7dcf8b87859598eba14e0aa184c3bb66;p=apache 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 --- 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;