Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use private mapping from provided shm_pool buffer #1876

Merged
merged 1 commit into from
Apr 30, 2024
Merged

Conversation

Caellian
Copy link
Collaborator

@Caellian Caellian commented Apr 30, 2024

Using MAP_SHARED causes a crash on some compositors/systems as shown by #1824. According to WL docs:

From version 7 onwards, the fd must be mapped with MAP_PRIVATE by the recipient, as MAP_SHARED may fail.

We don't need a MAP_SHARED as the provided buffer will be used exclusively by conky and not shared with other processes.

This PR addresses that and closes #1824.

Testing

  • Tested private mapping in another Wayland client and it worked with hyprland.

Signed-off-by: Tin Švagelj <tin.svagelj@live.com>
@github-actions github-actions bot added sources PR modifies project sources display: wayland Issue related to Wayland backend labels Apr 30, 2024
Copy link

netlify bot commented Apr 30, 2024

Deploy Preview for conkyweb canceled.

Name Link
🔨 Latest commit a576c2c
🔍 Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/66310e808e6cc10007ef11cc

@Caellian Caellian merged commit b486263 into main Apr 30, 2024
62 checks passed
@Caellian Caellian deleted the fix/wl-shm-mmap branch April 30, 2024 16:14
@brndnmtthws brndnmtthws added the bug Bug report or bug fix PR label Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report or bug fix PR display: wayland Issue related to Wayland backend sources PR modifies project sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: conky uses MAP_SHARED mmap for shm
2 participants