You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2002/04/03 15:38:06 UTC

cvs commit: httpd-2.0/server/mpm/prefork prefork.c

trawick     02/04/03 05:38:06

  Modified:    server/mpm/prefork prefork.c
  Log:
  style change only
  
  Revision  Changes    Path
  1.258     +8 -8      httpd-2.0/server/mpm/prefork/prefork.c
  
  Index: prefork.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/prefork/prefork.c,v
  retrieving revision 1.257
  retrieving revision 1.258
  diff -u -r1.257 -r1.258
  --- prefork.c	29 Mar 2002 14:33:50 -0000	1.257
  +++ prefork.c	3 Apr 2002 13:38:06 -0000	1.258
  @@ -1211,15 +1211,15 @@
       if (restart_num++ == 1) {
   	is_graceful = 0;
   
  -    if (!one_process) {
  -        rv = apr_proc_detach(no_detach ? APR_PROC_DETACH_FOREGROUND
  -                                       : APR_PROC_DETACH_DAEMONIZE);
  -        if (rv != APR_SUCCESS) {
  -            ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL,
  -                         "apr_proc_detach failed");
  -            return HTTP_INTERNAL_SERVER_ERROR;
  +        if (!one_process) {
  +            rv = apr_proc_detach(no_detach ? APR_PROC_DETACH_FOREGROUND
  +                                           : APR_PROC_DETACH_DAEMONIZE);
  +            if (rv != APR_SUCCESS) {
  +                ap_log_error(APLOG_MARK, APLOG_CRIT, rv, NULL,
  +                             "apr_proc_detach failed");
  +                return HTTP_INTERNAL_SERVER_ERROR;
  +            }
           }
  -    }
   
   	parent_pid = ap_my_pid = getpid();
       }