Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: pws-N: latest mapfile bug
- X-seq: zsh-workers 6473
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: pws-N: latest mapfile bug
- Date: Sat, 05 Jun 1999 17:32:54 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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