httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/winnt mpm_winnt.c
Date Mon, 01 Jul 2002 20:51:01 GMT
wrowe       2002/07/01 13:51:01

  Modified:    server/mpm/winnt mpm_winnt.c
  Log:
    The pitfalls of cut'n'paste
  
  Revision  Changes    Path
  1.284     +8 -7      httpd-2.0/server/mpm/winnt/mpm_winnt.c
  
  Index: mpm_winnt.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/winnt/mpm_winnt.c,v
  retrieving revision 1.283
  retrieving revision 1.284
  diff -u -r1.283 -r1.284
  --- mpm_winnt.c	1 Jul 2002 19:03:03 -0000	1.283
  +++ mpm_winnt.c	1 Jul 2002 20:51:00 -0000	1.284
  @@ -1638,13 +1638,14 @@
       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 */
  
  
  

Mime
View raw message