manoj 99/04/16 22:10:19
Modified: pthreads/src/main http_main.c Log: Note in the scoreboard when a child process dies abnormally, so that a substitute can be started. Revision Changes Path 1.74 +3 -3 apache-apr/pthreads/src/main/http_main.c Index: http_main.c =================================================================== RCS file: /home/cvs/apache-apr/pthreads/src/main/http_main.c,v retrieving revision 1.73 retrieving revision 1.74 diff -u -u -r1.73 -r1.74 --- http_main.c 1999/04/17 04:25:56 1.73 +++ http_main.c 1999/04/17 05:10:18 1.74 @@ -2227,6 +2227,7 @@ int child_slot; ap_wait_t status; int pid; + int i; while (!restart_pending && !shutdown_pending) { pid = wait_or_timeout(&status); @@ -2234,9 +2235,8 @@ if (pid >= 0) { child_slot = find_child_by_pid(pid); if (child_slot >= 0) { - /*(void) ap_update_child_status(child_slot, SERVER_DEAD, - (request_rec *) NULL); - LOOK INTO THIS */ + for (i = 0; i < ap_threads_per_child + ap_acceptors_per_child; i++) + ap_update_child_status(child_slot, i, SERVER_DEAD, (request_rec *) NULL); if (remaining_children_to_start && child_slot < ap_daemons_limit) {