1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-29 01:58:26 +00:00

Use private mapping from provided shm_pool buffer (#1876)

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
This commit is contained in:
Tin Švagelj 2024-04-30 16:14:34 +00:00 committed by GitHub
parent f3f53fd764
commit b486263b27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1065,7 +1065,7 @@ static struct wl_shm_pool *make_shm_pool(struct wl_shm *shm, int size,
return NULL;
}
*data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
*data = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
if (*data == MAP_FAILED) {
fprintf(stderr, "mmap failed: %m\n");
close(fd);