source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Add MAP_SHARED for mmap, at least NetBSD with DIAGNOSTIC is
@ 2010-06-06 20:44 joerg
  0 siblings, 0 replies; only message in thread
From: joerg @ 2010-06-06 20:44 UTC (permalink / raw)
  To: source

Log Message:
-----------
Add MAP_SHARED for mmap, at least NetBSD with DIAGNOSTIC is quite noisy
otherwise.

Modified Files:
--------------
    mdocml:
        main.c

Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/joerg/cvsroot/mdocml/main.c,v
retrieving revision 1.82
retrieving revision 1.83
diff -Lmain.c -Lmain.c -u -p -r1.82 -r1.83
--- main.c
+++ main.c
@@ -395,7 +395,7 @@ read_whole_file(struct curparse *curp, s
 		*with_mmap = 1;
 		fb->sz = (size_t)st.st_size;
 		fb->buf = mmap(NULL, fb->sz, PROT_READ, 
-				MAP_FILE, curp->fd, 0);
+				MAP_FILE|MAP_SHARED, curp->fd, 0);
 		if (fb->buf != MAP_FAILED)
 			return(1);
 	}
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-06-06 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-06 20:44 mdocml: Add MAP_SHARED for mmap, at least NetBSD with DIAGNOSTIC is joerg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).