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

Add WaitStatus::PtraceSyscall for use with PTRACE_O_TRACESYSGOOD #566

Merged
merged 2 commits into from
Jul 21, 2017

Commits on Jul 21, 2017

  1. Add WaitStatus::PtraceSyscall for use with PTRACE_O_TRACESYSGOOD

    The recommended way to trace syscalls with ptrace is to set the
    PTRACE_O_TRACESYSGOOD option, to distinguish syscall stops from
    receiving an actual SIGTRAP. In C, this would cause WSTOPSIG to return
    SIGTRAP | 0x80, but nix wants to parse that as an actual signal.
    
    Add another wait status type for syscall stops (in the language of the
    ptrace(2) manpage, "PTRACE_EVENT stops" and "Syscall-stops" are
    different things), and mask out bit 0x80 from signals before trying to
    parse it.
    
    Closes nix-rust#550
    geofft committed Jul 21, 2017
    Configuration menu
    Copy the full SHA
    c1a3427 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d292984 View commit details
    Browse the repository at this point in the history