Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/librumpclient Use MAP_ANON|MAP_PRIVATE for anonymous mem...
details: https://anonhg.NetBSD.org/src/rev/043d2be4bdc5
branches: trunk
changeset: 327047:043d2be4bdc5
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Feb 26 02:03:40 2014 +0000
description:
Use MAP_ANON|MAP_PRIVATE for anonymous memory mapping,
e.g. Linux gets upset if just MAP_ANON.
diffstat:
lib/librumpclient/rumpclient.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r d20cf84f1b00 -r 043d2be4bdc5 lib/librumpclient/rumpclient.c
--- a/lib/librumpclient/rumpclient.c Wed Feb 26 02:03:00 2014 +0000
+++ b/lib/librumpclient/rumpclient.c Wed Feb 26 02:03:40 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpclient.c,v 1.56 2014/02/20 00:42:27 pooka Exp $ */
+/* $NetBSD: rumpclient.c,v 1.57 2014/02/26 02:03:40 pooka Exp $ */
/*
* Copyright (c) 2010, 2011 Antti Kantee. All Rights Reserved.
@@ -48,7 +48,7 @@
#define USE_KQUEUE
#endif
-__RCSID("$NetBSD: rumpclient.c,v 1.56 2014/02/20 00:42:27 pooka Exp $");
+__RCSID("$NetBSD: rumpclient.c,v 1.57 2014/02/26 02:03:40 pooka Exp $");
#include <sys/param.h>
#include <sys/mman.h>
@@ -618,7 +618,7 @@
/*LINTED*/
maplen = *(size_t *)spc->spc_buf;
mapaddr = mmap(NULL, maplen, PROT_READ|PROT_WRITE,
- MAP_ANON, -1, 0);
+ MAP_ANON|MAP_PRIVATE, -1, 0);
if (mapaddr == MAP_FAILED)
mapaddr = NULL;
DPRINTF(("rump_sp handlereq: anonmmap: %p\n", mapaddr));
Home |
Main Index |
Thread Index |
Old Index