diff options
author | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-04 07:31:19 +0000 |
---|---|---|
committer | vapier <vapier@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-04 07:31:19 +0000 |
commit | ea64384c08de277c1c87d612e3a7bc4c221c98f6 (patch) | |
tree | 85fcd243050f88a50d86e3a5884e9c12b123c8a2 /util-linux | |
parent | 96d0d8e1df139b0fb3b6e43a8b1c02837458c8a5 (diff) | |
download | busybox-w32-ea64384c08de277c1c87d612e3a7bc4c221c98f6.tar.gz busybox-w32-ea64384c08de277c1c87d612e3a7bc4c221c98f6.tar.bz2 busybox-w32-ea64384c08de277c1c87d612e3a7bc4c221c98f6.zip |
use MAP_PRIVATE instead of MAP_SHARED for uClinux systems (see Bug 550)
git-svn-id: svn://busybox.net/trunk/busybox@13077 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/mdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
68 | /* mmap the config file */ | 68 | /* mmap the config file */ |
69 | if (-1!=(fd=open("/etc/mdev.conf",O_RDONLY))) { | 69 | if (-1!=(fd=open("/etc/mdev.conf",O_RDONLY))) { |
70 | len=lseek(fd,0,SEEK_END); | 70 | len=lseek(fd,0,SEEK_END); |
71 | conf=mmap(NULL,len,PROT_READ,MAP_SHARED,fd,0); | 71 | conf=mmap(NULL,len,PROT_READ,MAP_PRIVATE,fd,0); |
72 | if (conf) { | 72 | if (conf) { |
73 | int line=0; | 73 | int line=0; |
74 | 74 | ||