httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From roo...@apache.org
Subject svn commit: r396069 - /httpd/httpd/trunk/support/fcgistarter.c
Date Sat, 22 Apr 2006 03:55:04 GMT
Author: rooneg
Date: Fri Apr 21 20:55:02 2006
New Revision: 396069

URL: http://svn.apache.org/viewcvs?rev=396069&view=rev
Log:
* support/fcgistarter.c
  (main): Oops, we need to detach before the fork, otherwise this all
   totally fails to work...

Modified:
    httpd/httpd/trunk/support/fcgistarter.c

Modified: httpd/httpd/trunk/support/fcgistarter.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/support/fcgistarter.c?rev=396069&r1=396068&r2=396069&view=diff
==============================================================================
--- httpd/httpd/trunk/support/fcgistarter.c (original)
+++ httpd/httpd/trunk/support/fcgistarter.c Fri Apr 21 20:55:02 2006
@@ -144,16 +144,16 @@
         exit_error(rv, "apr_socket_listen");
     }
 
+    rv = apr_proc_detach(APR_PROC_DETACH_DAEMONIZE);
+    if (rv) {
+        exit_error(rv, "apr_proc_detach");
+    }
+
     while (--num_to_start >= 0) {
         rv = apr_proc_fork(&proc, pool);
         if (rv == APR_INCHILD) {
             apr_os_file_t oft = 0;
             apr_os_sock_t oskt;
-
-            rv = apr_proc_detach(APR_PROC_DETACH_DAEMONIZE);
-            if (rv) {
-                exit_error(rv, "apr_proc_detach");
-            }
 
 #if defined(WIN32) || defined(OS2) || defined(NETWARE)
 #error "Please implement me."



Mime
View raw message