rse 99/07/16 03:27:05
Modified: mpm/src/modules/mpm/mpmt_pthread mpmt_pthread.c Log: Be careful, accept_mutex_child_init() has to be done _before_ unixd_setup_child() switches the process UID, because else under platforms where the mutex is flock() based this fails... Revision Changes Path 1.9 +3 -2 apache-2.0/mpm/src/modules/mpm/mpmt_pthread/mpmt_pthread.c Index: mpmt_pthread.c =================================================================== RCS file: /home/cvs/apache-2.0/mpm/src/modules/mpm/mpmt_pthread/mpmt_pthread.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- mpmt_pthread.c 1999/07/16 07:15:48 1.8 +++ mpmt_pthread.c 1999/07/16 10:27:03 1.9 @@ -992,12 +992,13 @@ /*stuff to do before we switch id's, so we have permissions.*/ reopen_scoreboard(pchild); + SAFE_ACCEPT(intra_mutex_init(pchild, 1)); + SAFE_ACCEPT(accept_mutex_child_init(pchild)); + if (unixd_setup_child()) { clean_child_exit(APEXIT_CHILDFATAL); } - SAFE_ACCEPT(intra_mutex_init(pchild, 1)); - SAFE_ACCEPT(accept_mutex_child_init(pchild)); ap_child_init_hook(pchild, server_conf); /*done with init critical section */