Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: pws-N: latest mapfile bug



I discovered the latest unfeasibly simple bug with mapfile which was causing
problems on HPUX.

--- Src/Modules/mapfile.c.goodish	Sat Jun  5 17:10:01 1999
+++ Src/Modules/mapfile.c	Sat Jun  5 17:28:57 1999
@@ -149,6 +149,7 @@
 	 * pages.  Honestly, I tried it without, and you need both.
 	 */
 	ftruncate(fd, len);
+	munmap(mmptr, len);
     }
 #else /* don't USE_MMAP */
     /* can't be bothered to do anything too clever here */

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author