Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change SigAction::flags to use from_bits_truncated
On Linux, if the signal trampoline code is in the C library, sigaction sets the SA_RESTORER flag (0x04000000) in the sa_flags field of old sigaction (see sigreturn(2)). This is not intended for application use and is missing from SaFlags, therefore from_bits fails and unwrapping panics the user program. This fix just drops the bits that are not defined in SaFlags.
- Loading branch information