nix icon indicating copy to clipboard operation
nix copied to clipboard

fix: only close `fanotify` events with a valid fd

Open tombl opened this issue 1 year ago • 0 comments
trafficstars

What does this PR do

fanotify returns events with the fd set to FAN_NOFD when the queue overflows. Trying to close it panics with EBADF, so don't bother.

Checklist:

  • [x] I have read CONTRIBUTING.md
  • [ ] I have written necessary tests and rustdoc comments
  • [x] A change log has been added if this PR modifies nix's API

tombl avatar May 08 '24 17:05 tombl