httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roy Fielding <field...@hyperreal.com>
Subject cvs commit: apache/src CHANGES http_main.c
Date Mon, 07 Apr 1997 09:59:52 GMT
fielding    97/04/07 02:59:52

  Modified:    src       CHANGES http_main.c
  Log:
  Try to log where the server is dumping core when a fatal
  signal is received.
  
  Submitted by: Ken Coar
  Reviewed by: Roy, Chuck, Jim, Randy, Dean
  
  Revision  Changes    Path
  1.223     +3 -0      apache/src/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /export/home/cvs/apache/src/CHANGES,v
  retrieving revision 1.222
  retrieving revision 1.223
  diff -C3 -r1.222 -r1.223
  *** CHANGES	1997/04/07 09:44:16	1.222
  --- CHANGES	1997/04/07 09:59:49	1.223
  ***************
  *** 1,5 ****
  --- 1,8 ----
    Changes with Apache 1.2b8
    
  +   *) We now try to log where the server is dumping core when a fatal
  +      signal is received.  [Ken Coar]
  + 
      *) Improved lingering_close by adding a special timeout, removing the
         spurious log messages, removing the nonblocking settings (they
         are not needed with the better timeout), and adding commentary
  
  
  
  1.136     +20 -2     apache/src/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_main.c,v
  retrieving revision 1.135
  retrieving revision 1.136
  diff -C3 -r1.135 -r1.136
  *** http_main.c	1997/04/07 09:44:18	1.135
  --- http_main.c	1997/04/07 09:59:50	1.136
  ***************
  *** 1299,1312 ****
    }
    
    void bus_error(void) {
  !     log_error("httpd: caught SIGBUS, dumping core", server_conf);
        chdir(server_root);
        abort();         
        exit(1);
    }
    
    void seg_fault() {
  !     log_error("httpd: caught SIGSEGV, dumping core", server_conf);
        chdir(server_root);
        abort();
        exit(1);
  --- 1299,1330 ----
    }
    
    void bus_error(void) {
  !     char emsg[256];
  ! 
  !     ap_snprintf
  ! 	(
  ! 	    emsg,
  ! 	    sizeof(emsg) - 1,
  ! 	    "httpd: caught SIGBUS, attempting to dump core in %s",
  ! 	    server_root
  ! 	);
  !     log_error(emsg, server_conf);
        chdir(server_root);
        abort();         
        exit(1);
    }
    
    void seg_fault() {
  !     char emsg[256];
  ! 
  !     ap_snprintf
  ! 	(
  ! 	    emsg,
  ! 	    sizeof(emsg) - 1,
  ! 	    "httpd: caught SIGSEGV, attempting to dump core in %s",
  ! 	    server_root
  ! 	);
  !     log_error(emsg, server_conf);
        chdir(server_root);
        abort();
        exit(1);
  
  
  

Mime
View raw message