use MAP_PRIVATE instead of MAP_SHARED for uClinux systems (see Bug 550)

This commit is contained in:
Mike Frysinger
2006-01-04 07:31:19 +00:00
parent b92405552f
commit 5990efb795
2 changed files with 2 additions and 2 deletions

View File

@@ -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;