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 SignalFd::set_mask #2141

Merged
merged 1 commit into from
Oct 2, 2023
Merged

Fix SignalFd::set_mask #2141

merged 1 commit into from
Oct 2, 2023

Conversation

asomers
Copy link
Member

@asomers asomers commented Sep 30, 2023

In 0.27.0 it inadvertently closed the file descriptor, leaving the SignalFd object accessing a stale file descriptor.

Fixes #2116

@asomers
Copy link
Member Author

asomers commented Sep 30, 2023

@DJMcNab could you please test this patch with your application?

@DJMcNab
Copy link

DJMcNab commented Sep 30, 2023

This doesn't really impact me, as it was only due to the tests of calloop. I'm not set up torun those tests at this exact moment

I don't think the updates in calloop should be that bad, if you want to use it for testing - Smithay/calloop#145 doesn't compile because of (effectively) #2112, but that's just adding some derives

In 0.27.0 it inadvertently closed the file descriptor, leaving the
SignalFd object accessing a stale file descriptor.

Fixes nix-rust#2116
@SteveLauC SteveLauC added this pull request to the merge queue Oct 2, 2023
Merged via the queue into nix-rust:master with commit 591e2ed Oct 2, 2023
35 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.

SignalFd::set_mask closes the signal file descriptor
3 participants