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

Fix double close when calling xkb::Keymap::new_from_fd #412

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Sep 30, 2023

strace ./target/debug/examples/simple_window 2>&1| grep EBADF shows this error before this change.

new_from_fd calls File::from on the fd, which results in closing it on drop.

`strace ./target/debug/examples/simple_window 2>&1| grep EBADF` shows
this error before this change.

`new_from_fd` calls `File::from` on the fd, which results in closing it
on drop.
@wash2 wash2 merged commit 5129dc2 into Smithay:master Sep 30, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants