-
Notifications
You must be signed in to change notification settings - Fork 689
SignalFd::set_mask
closes the signal file descriptor
#2116
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
Comments
asomers
added a commit
to asomers/nix
that referenced
this issue
Sep 30, 2023
In 0.27.0 it inadvertently closed the file descriptor, leaving the SignalFd object accessing a stale file descriptor. Fixes nix-rust#2116
Merged
asomers
added a commit
to asomers/nix
that referenced
this issue
Oct 1, 2023
In 0.27.0 it inadvertently closed the file descriptor, leaving the SignalFd object accessing a stale file descriptor. Fixes nix-rust#2116
asomers
added a commit
to asomers/nix
that referenced
this issue
Oct 1, 2023
In 0.27.0 it inadvertently closed the file descriptor, leaving the SignalFd object accessing a stale file descriptor. Fixes nix-rust#2116
github-merge-queue bot
pushed a commit
that referenced
this issue
Oct 2, 2023
In 0.27.0 it inadvertently closed the file descriptor, leaving the SignalFd object accessing a stale file descriptor. Fixes #2116
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nix/src/sys/signalfd.rs
Lines 103 to 105 in b2e45a9
This is because
_signalfd
returns anOwnedFd
as of #1874 (cc @JonathanWoollett-Light ):nix/src/sys/signalfd.rs
Line 52 in b2e45a9
This has caused issues in Smithay/calloop, and required backing out of the nix 0.27 update (+ #2112, of course).
This can be worked around in user code by using the newly-deprecated
signalfd
function, so it's not too bad:The text was updated successfully, but these errors were encountered: