]> granicus.if.org Git - apache/commitdiff
don't ignore some apr_procattr failures (clang scan-build)
authorJeff Trawick <trawick@apache.org>
Wed, 23 Oct 2013 11:59:35 +0000 (11:59 +0000)
committerJeff Trawick <trawick@apache.org>
Wed, 23 Oct 2013 11:59:35 +0000 (11:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1534995 13f79535-47bb-0310-9956-ffa450edef68

server/log.c

index ca5450a26ce332ad25c503d73d32a7e9dc36b45b..a62867e06fc93084a589c51cae2386878acf90b2 100644 (file)
@@ -276,8 +276,10 @@ static int log_child(apr_pool_t *p, const char *progname,
                 rc = apr_procattr_child_err_set(procattr, errfile, NULL);
         }
 
-        rc = apr_proc_create(procnew, args[0], (const char * const *)args,
-                             NULL, procattr, p);
+        if (rc == APR_SUCCESS) {
+            rc = apr_proc_create(procnew, args[0], (const char * const *)args,
+                                 NULL, procattr, p);
+        }
 
         if (rc == APR_SUCCESS) {
             apr_pool_note_subprocess(p, procnew, APR_KILL_AFTER_TIMEOUT);