marc 97/08/03 13:37:20
Modified: src http_main.c
Log:
Fix file based scoreboards; reopen_scoreboard had been moved to
after the setuid(), where it didn't have permissions to open the
scoreboard file.
Reviewed by: Dean Gaudet
Revision Changes Path
1.195 +3 -1 apache/src/http_main.c
Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_main.c,v
retrieving revision 1.194
retrieving revision 1.195
diff -u -r1.194 -r1.195
--- http_main.c 1997/08/03 20:29:20 1.194
+++ http_main.c 1997/08/03 20:37:18 1.195
@@ -2176,6 +2176,9 @@
child_num = child_num_arg;
requests_this_child = 0;
+ /* needs to be done before we switch UIDs so we have permissions */
+ reopen_scoreboard(pconf);
+
#ifdef MPE
/* Only try to switch if we're running as MANAGER.SYS */
if (geteuid() == 1 && user_id > 1) {
@@ -2196,7 +2199,6 @@
child_init_modules(pconf, server_conf);
- reopen_scoreboard(pconf);
(void)update_child_status(child_num, SERVER_READY, (request_rec*)NULL);
/*