httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@locus.apache.org
Subject cvs commit: apache-2.0/src/main http_core.c
Date Wed, 29 Mar 2000 02:52:32 GMT
trawick     00/03/28 18:52:32

  Modified:    src/main http_core.c
  Log:
  when logging a failure of ap_mmap_create(), pass the returned
  status to ap_log_rerror() instead of the current errno value
  
  Revision  Changes    Path
  1.45      +3 -2      apache-2.0/src/main/http_core.c
  
  Index: http_core.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/main/http_core.c,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- http_core.c	2000/03/27 16:22:28	1.44
  +++ http_core.c	2000/03/29 02:52:31	1.45
  @@ -2552,8 +2552,9 @@
   	&& (!r->header_only || (d->content_md5 & 1))) {
   	/* we need to protect ourselves in case we die while we've got the
    	 * file mmapped */
  -    if (ap_mmap_create(&mm, fd, 0, r->finfo.size, r->pool) != APR_SUCCESS){
  -	    ap_log_rerror(APLOG_MARK, APLOG_CRIT, errno, r,
  +        ap_status_t status;
  +        if ((status = ap_mmap_create(&mm, fd, 0, r->finfo.size, r->pool)) !=
APR_SUCCESS) {
  +	    ap_log_rerror(APLOG_MARK, APLOG_CRIT, status, r,
   			 "default_handler: mmap failed: %s", r->filename);
   	    mm = NULL;
   	}
  
  
  

Mime
View raw message