From 5990efb7957818427d865dc13f28b87b7ff27508 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 4 Jan 2006 07:31:19 +0000 Subject: use MAP_PRIVATE instead of MAP_SHARED for uClinux systems (see Bug 550) --- util-linux/mdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-linux') diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 830939b92..d414c0c10 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -68,7 +68,7 @@ static void make_device(char *path) /* mmap the config file */ if (-1!=(fd=open("/etc/mdev.conf",O_RDONLY))) { len=lseek(fd,0,SEEK_END); - conf=mmap(NULL,len,PROT_READ,MAP_SHARED,fd,0); + conf=mmap(NULL,len,PROT_READ,MAP_PRIVATE,fd,0); if (conf) { int line=0; -- cgit v1.2.3