rbb 99/02/08 05:58:38
Modified: pthreads/src/main http_main.c Log: Make the final acceptor thread be the main thread for the process. This change means we have one fewer thread per process than we used to, but the thread we are removing was a wasted thread anyway. Revision Changes Path 1.11 +2 -1 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.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- http_main.c 1999/02/08 06:47:42 1.10 +++ http_main.c 1999/02/08 13:58:38 1.11 @@ -1714,7 +1714,7 @@ /* Setup acceptor threads */ lr = ap_listeners; - while (lr != NULL) { + while (lr->next != NULL) { if (pthread_create(&thread, NULL, accept_thread, &(lr->fd))) { ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf, "pthread_create: unable to create acceptor thread"); @@ -1724,6 +1724,7 @@ } lr = lr->next; } + accept_thread(&(lr->fd)); } static int make_child(server_rec *s, int slot, time_t now) /* ZZZ */