httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@decus.org (Rodent of Unusual Size)
Subject [PATCH] {take 2} including dump location in error_log
Date Sun, 06 Apr 1997 01:37:23 GMT
>From the fingers of sameer flowed the following:
>
>the ocore file isn't alwqys called 'core'

    Aw, nutz.  I was afraid of something like that.  'Sokey, here we go
    with only the directory listed.  Hopefully, anyone doing an "ls" on
    the location will know the name for which they're looking..

    #ken    :-)}
Index: http_main.c
===================================================================
RCS file: /usr/users/coar/myApache/repository/apache/src/http_main.c,v
retrieving revision 1.133
diff -c -r1.133 http_main.c
*** 1.133	1997/03/22 23:51:02
--- http_main.c	1997/04/05 22:14:54
***************
*** 1239,1245 ****
  }
  
  void bus_error(void) {
!     log_error("httpd: caught SIGBUS, dumping core", server_conf);
      chdir(server_root);
      abort();         
      exit(1);
--- 1239,1254 ----
  }
  
  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);
***************
*** 1246,1252 ****
  }
  
  void seg_fault() {
!     log_error("httpd: caught SIGSEGV, dumping core", server_conf);
      chdir(server_root);
      abort();
      exit(1);
--- 1255,1270 ----
  }
  
  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