core: mmap keymap buffer with MAP_PRIVATE (#190)

This commit is contained in:
Maximilian Seidler 2024-03-14 14:12:43 +01:00 committed by GitHub
parent 988d5b3957
commit ae889b47a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -611,7 +611,7 @@ static void handleKeyboardKeymap(void* data, wl_keyboard* wl_keyboard, uint form
return;
}
const char* buf = (const char*)mmap(NULL, size, PROT_READ, MAP_SHARED, fd, 0);
const char* buf = (const char*)mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0);
if (buf == MAP_FAILED) {
Debug::log(ERR, "Failed to mmap xkb keymap: {}", errno);
return;