manoj 99/02/14 23:48:37
Modified: pthreads/src/main http_main.c
Log:
Fix a buglet. Worker threads didn't note in the scoreboard when they
were back in SERVER_READY state.
Revision Changes Path
1.22 +4 -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.21
retrieving revision 1.22
diff -u -u -r1.21 -r1.22
--- http_main.c 1999/02/15 07:01:57 1.21
+++ http_main.c 1999/02/15 07:48:36 1.22
@@ -2071,14 +2071,15 @@
int my_pid = ti->pid;
int my_tid = ti->tid;
struct sockaddr sa_client;
+ int csd;
free(ti);
- (void) ap_update_child_status(my_pid, my_tid, SERVER_READY,
+ while (0 < requests_this_child) {
+ (void) ap_update_child_status(my_pid, my_tid, SERVER_READY,
(request_rec *) NULL);
- while (0 < requests_this_child) {
- int csd = queue_pop(&csd_queue, &sa_client);
+ csd = queue_pop(&csd_queue, &sa_client);
if (csd >= 0) {
process_socket(pchild, &sa_client, csd, my_pid, my_tid);
}