diff options
| author | Marcel Holtmann <marcel@holtmann.org> | 2006-01-17 10:52:35 +0000 | 
|---|---|---|
| committer | Marcel Holtmann <marcel@holtmann.org> | 2006-01-17 10:52:35 +0000 | 
| commit | 454c7500c64ab132f44aebbd7086a9748e5c4436 (patch) | |
| tree | 1e5fbfc53e1a0491ee078994f125c3359d8d84ad /common/textfile.c | |
| parent | 67d4c0b35c9708ad5d637bd868c76bc7bb99bf71 (diff) | |
Use MAP_PRIVATE instead of MAP_SHARED for textfile_put()
Diffstat (limited to 'common/textfile.c')
| -rw-r--r-- | common/textfile.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/common/textfile.c b/common/textfile.c index 906c230d..ec445b1a 100644 --- a/common/textfile.c +++ b/common/textfile.c @@ -148,7 +148,7 @@ int textfile_put(char *pathname, char *key, char *value)  		goto unlock;  	} -	map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_LOCKED, fd, 0); +	map = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_LOCKED, fd, 0);  	if (!map || map == MAP_FAILED) {  		err = errno;  		goto unlock; | 
