httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject cvs commit: httpd-2.0/server log.c
Date Mon, 08 Jan 2001 13:25:02 GMT
bjh         01/01/08 05:25:02

  Modified:    server   log.c
  Log:
  Fix message when the error log file can't be opened.
  
  Revision  Changes    Path
  1.79      +5 -5      httpd-2.0/server/log.c
  
  Index: log.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/log.c,v
  retrieving revision 1.78
  retrieving revision 1.79
  diff -u -r1.78 -r1.79
  --- log.c	2001/01/04 18:22:49	1.78
  +++ log.c	2001/01/08 13:25:02	1.79
  @@ -267,11 +267,11 @@
   #endif
       else {
   	fname = ap_server_root_relative(p, s->error_fname);
  -	/*  Change to AP funcs. */
  -        if (apr_open(&s->error_log, fname, APR_APPEND | 
  -                    APR_READ | APR_WRITE | APR_CREATE, APR_OS_DEFAULT, p) != APR_SUCCESS)
{
  -            perror("fopen");
  -            ap_log_error(APLOG_MARK, APLOG_STARTUP | APLOG_NOERRNO, 0, NULL, 
  +        rc = apr_open(&s->error_log, fname, 
  +                      APR_APPEND | APR_READ | APR_WRITE | APR_CREATE,
  +                      APR_OS_DEFAULT, p);
  +        if (rc != APR_SUCCESS) {
  +            ap_log_error(APLOG_MARK, APLOG_STARTUP, rc, NULL, 
                            "%s: could not open error log file %s.",
   		         ap_server_argv0, fname);
               exit(1);
  
  
  

Mime
View raw message