httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@hyperreal.org
Subject cvs commit: apache-apr/pthreads/src/main http_main.c
Date Wed, 26 May 1999 07:09:19 GMT
manoj       99/05/26 00:09:19

  Modified:    pthreads/src/main http_main.c
  Log:
  Move a little piece of code so it isn't run as root
  
  Revision  Changes    Path
  1.87      +1 -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.86
  retrieving revision 1.87
  diff -u -u -r1.86 -r1.87
  --- http_main.c	1999/05/26 07:06:31	1.86
  +++ http_main.c	1999/05/26 07:09:18	1.87
  @@ -1898,8 +1898,6 @@
       /*stuff to do before we switch id's, so we have permissions.*/
       reopen_scoreboard(pchild);
   
  -    accept_child_init(pchild, ap_threads_per_child);
  -
       set_group_privs();
   
       if (!geteuid() && (setuid(ap_user_id) == -1)) {
  @@ -1908,6 +1906,7 @@
   	clean_child_exit(APEXIT_CHILDFATAL);
       }
   
  +    accept_child_init(pchild, ap_threads_per_child);
       ap_child_init_modules(pchild, server_conf);
   
       /*done with init critical section */
  
  
  

Mime
View raw message