]> granicus.if.org Git - apache/commitdiff
The pitfalls of cut'n'paste
authorWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 1 Jul 2002 20:51:00 +0000 (20:51 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Mon, 1 Jul 2002 20:51:00 +0000 (20:51 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95935 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/mpm_winnt.c

index 62f19c246614eb796d0850d953e050f432f192ca..5af17f45e4c52af961b79979e7a7af07c378e9ce 100644 (file)
@@ -1638,13 +1638,14 @@ static int create_process(apr_pool_t *p, HANDLE *child_proc, HANDLE *child_exit_
     else {
         rv = apr_file_open_stderr(&child_err, ptemp);
     }
-    if (((rv) != APR_SUCCESS)
-            || ((rv = apr_procattr_child_out_set(attr, child_err, NULL))
-                    != APR_SUCCESS)) {
-        ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf,
-                        "Parent: Unable to connect child stderr to log.\n");
-        apr_pool_destroy(ptemp);
-        return -1;
+    if (rv == APR_SUCCESS) {
+        if ((rv = apr_procattr_child_err_set(attr, child_err, NULL))
+                != APR_SUCCESS) {
+            ap_log_error(APLOG_MARK, APLOG_CRIT, rv, ap_server_conf,
+                            "Parent: Unable to connect child stderr.\n");
+            apr_pool_destroy(ptemp);
+            return -1;
+        }
     }
 
     /* Create the child_exit_event */