manoj 99/02/16 16:01:54
Modified: pthreads/src/main http_main.c Log: Eep. ptrans existed in the process scope. Now there is one ptrans per thread, and it is sub-pooled off the correct "super-pool" now. This fixes some very confusing coredumps, which were confusing because there were still coredumps before the original ptrans patch, they were just caused by the lack of ptrans. Revision Changes Path 1.35 +2 -2 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.34 retrieving revision 1.35 diff -u -u -r1.34 -r1.35 --- http_main.c 1999/02/16 21:37:32 1.34 +++ http_main.c 1999/02/17 00:01:45 1.35 @@ -288,7 +288,6 @@ static pool *pperm; /* Pool for permananent stuff */ static pool *pconf; /* Pool for config stuff */ -static pool *ptrans; /* Pool for per-transaction stuff */ static pool *ptemp; /* Pool for temporart config stuff */ static pool *pcommands; /* Pool for -C and -c switches */ @@ -2313,10 +2312,11 @@ int my_tid = ti->tid; struct sockaddr sa_client; int csd; + pool *ptrans; /* Pool for per-transaction stuff */ free(ti); - ptrans = ap_make_sub_pool(pconf); + ptrans = ap_make_sub_pool(pchild); while (0 < requests_this_child) { (void) ap_update_child_status(my_pid, my_tid, SERVER_READY, (request_rec *) NULL);