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

Change SigAction::flags to use from_bits_truncated #869

Merged
merged 1 commit into from
Mar 2, 2018

Commits on Mar 2, 2018

  1. 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.
    Detegr committed Mar 2, 2018
    Configuration menu
    Copy the full SHA
    4419205 View commit details
    Browse the repository at this point in the history