]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Win32: Improve error reporting after a failed attempt to spawn a
authorJeff Trawick <trawick@apache.org>
Sun, 4 Jul 2004 11:34:36 +0000 (11:34 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 4 Jul 2004 11:34:36 +0000 (11:34 +0000)
piped log process or rewrite map process.

Submitted by: trawick
Reviewed by:  stoddard, nd

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@104161 13f79535-47bb-0310-9956-ffa450edef68

src/CHANGES
src/main/alloc.c

index 048d214befaee173b5356d0405bac113704abea2..916e3dc82a7e080be3942f6c9a9847152cec0e26 100644 (file)
@@ -1,5 +1,8 @@
 Changes with Apache 1.3.32
 
+  *) Win32: Improve error reporting after a failed attempt to spawn a 
+     piped log process or rewrite map process.  [Jeff Trawick]
+
   *) SECURITY: CAN-2004-0492 (cve.mitre.org)
      Reject responses from a remote server if sent an invalid (negative) 
      Content-Length.  [Mark Cox]
@@ -16,7 +19,7 @@ Changes with Apache 1.3.32
      It controls how UseCanonicalName Off determines the port value if
      the client doesn't provide one in the Host header. If defined during
      compilation, UseCanonicalName Off will use the physical port number to
-     generate the canonical name. If not defined, it trys the current Port
+     generate the canonical name. If not defined, it tries the current Port
      value followed by the default port for the current scheme.
      [Jim Jagielski]
 
index f6a413e3961edd79050001f2318da4cc1c623500..71b20b827816dc5f25eaf63687b0b9d8cac9a940 100644 (file)
@@ -2318,9 +2318,11 @@ static pid_t spawn_child_core(pool *p, int (*func) (void *, child_info *),
        (void) ap_release_mutex(spawn_mutex);
        /*
         * go on to the end of the function, where you can
-        * unblock alarms and return the pid
+        * return the pid
         */
-
+        if (!pid) {
+            errno = save_errno;
+        }
     }
 #elif defined(NETWARE)
      /* NetWare currently has no pipes yet. This will