httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@hyperreal.com>
Subject cvs commit: apache/src http_log.c
Date Mon, 23 Sep 1996 14:07:11 GMT
jim         96/09/23 07:07:10

  Modified:    src       http_log.c
  Log:
  ErrorLog pipe fix
  
  Revision  Changes    Path
  1.7       +5 -3      apache/src/http_log.c
  
  Index: http_log.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_log.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -C3 -r1.6 -r1.7
  *** http_log.c	1996/08/20 11:50:45	1.6
  --- http_log.c	1996/09/23 14:07:09	1.7
  ***************
  *** 50,56 ****
     *
     */
    
  ! /* $Id: http_log.c,v 1.6 1996/08/20 11:50:45 paul Exp $ */
    
    /*
     * http_log.c: Dealing with the logs and errors
  --- 50,56 ----
     *
     */
    
  ! /* $Id: http_log.c,v 1.7 1996/09/23 14:07:09 jim Exp $ */
    
    /*
     * http_log.c: Dealing with the logs and errors
  ***************
  *** 86,101 ****
      
        fname = server_root_relative (p, s->error_fname);
    
  !     if (*fname == '|') {
          FILE *dummy;
    
  !       spawn_child(p, error_log_child, (void *)(fname+1),
                        kill_after_timeout, &dummy, NULL);
    
            if (dummy == NULL) {
                fprintf (stderr, "Couldn't fork child for ErrorLog process\n");
                exit (1);
          }
        } else {
            if(!(s->error_log = pfopen(p, fname, "a"))) {
                fprintf(stderr,"httpd: could not open error log file %s.\n", fname);
  --- 86,103 ----
      
        fname = server_root_relative (p, s->error_fname);
    
  !     if (*s->error_fname == '|') {
          FILE *dummy;
    
  !       spawn_child(p, error_log_child, (void *)(s->error_fname+1),
                        kill_after_timeout, &dummy, NULL);
    
            if (dummy == NULL) {
                fprintf (stderr, "Couldn't fork child for ErrorLog process\n");
                exit (1);
          }
  + 
  +       s->error_log = dummy;
        } else {
            if(!(s->error_log = pfopen(p, fname, "a"))) {
                fprintf(stderr,"httpd: could not open error log file %s.\n", fname);
  
  
  

Mime
View raw message