dgaudet 97/11/30 11:18:47
Modified: src/main http_core.c Log: Bump default MMAP_THRESHOLD to 1 from 0 because some systems don't allow mmap of size 0. PR: 1491 Reviewed by: Jim Jagielski, Ken Coar Revision Changes Path 1.142 +4 -4 apachen/src/main/http_core.c Index: http_core.c =================================================================== RCS file: /export/home/cvs/apachen/src/main/http_core.c,v retrieving revision 1.141 retrieving revision 1.142 diff -u -r1.141 -r1.142 --- http_core.c 1997/11/22 01:59:57 1.141 +++ http_core.c 1997/11/30 19:18:46 1.142 @@ -75,15 +75,15 @@ * <http://www.isi.edu/~johnh/SOFTWARE/APACHE/index.html>. */ -/* Files have to be at least this big before they're mmap()d. This is to - * deal with systems where the expense of doing an mmap() and an munmap() - * outweighs the benefit for small files. +/* Files have to be at least this big before they're mmap()d. This is to deal + * with systems where the expense of doing an mmap() and an munmap() outweighs + * the benefit for small files. It shouldn't be set lower than 1. */ #ifndef MMAP_THRESHOLD #ifdef SUNOS4 #define MMAP_THRESHOLD (8*1024) #else -#define MMAP_THRESHOLD 0 +#define MMAP_THRESHOLD 1 #endif #endif #endif