forked from nix-rust/nix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wait: support ptrace events for Linux
- Loading branch information
Showing
1 changed file
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b2d3b4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you link to the relevant part bit of documentation? I didn't see anything specific in either
wait(2)
orptrace(2)
man pages.I'm also a bit put off by adding a meaningless member on non-Linux systems. Trying to think of alternatives...
b2d3b4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://man7.org/linux/man-pages/man2/ptrace.2.html , see PTRACE_O_TRACEEXEC or PTRACE_O_TRACECLONE.
I don't like this too, but the only other way I thought of was to conditionally have the third value in
Stopped
based on a host system, and this renders any code that uses it unportable.b2d3b4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll take a look, but will comment on the individual PR when it's opened. Thanks for the link!