nix
nix copied to clipboard
SigSet Incorrect implementation of Eq and PartialEq
signal::SigSet derives Eq and PartialEq, I assume because libc::sigset_t does it too, but in linux, sigfillset(3) only initializes the first 64 bits, leaving the rest uninitialized, so two signal::SigSets can be different even though both have the same set of signals
I can work on fixing this, I assume it is preferable to manually implement PartialEq rather than simply eliminating the derive (Eq, PartialEq) since it's a breaking change, right?
Yes, I think it would be preferable to implement PartialEq rather than not to.
FYI: I previously reported this to libc https://github.com/rust-lang/libc/issues/2700
@germag are you still planning to fix this?
@germag are you still planning to fix this?
Yes, sorry @asomers I thought it had been solved in the libc crate