manoj 99/08/27 14:28:17
Modified: src/modules/mpm/dexter dexter.c
Log:
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...
Revision Changes Path
1.29 +2 -2 apache-2.0/src/modules/mpm/dexter/dexter.c
Index: dexter.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/modules/mpm/dexter/dexter.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -u -r1.28 -r1.29
--- dexter.c 1999/08/27 21:22:28 1.28
+++ dexter.c 1999/08/27 21:28:16 1.29
@@ -319,12 +319,12 @@
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;