]> granicus.if.org Git - apache/commitdiff
style change only
authorJeff Trawick <trawick@apache.org>
Wed, 3 Apr 2002 13:38:06 +0000 (13:38 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 3 Apr 2002 13:38:06 +0000 (13:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94418 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/prefork/prefork.c

index 7ba3aeb9320071f4483c328c3c66a88b9661572e..2c75ff0cf1344e2b4d4fcb77226e39d42315778d 100644 (file)
@@ -1211,15 +1211,15 @@ static int prefork_pre_config(apr_pool_t *p, apr_pool_t *plog, apr_pool_t *ptemp
     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();
     }