Skip to content

Commit

Permalink
core: mmap keymap buffer with MAP_PRIVATE (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma authored Mar 14, 2024
1 parent 988d5b3 commit ae889b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/hyprlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ae889b4

Please sign in to comment.