-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use pipe2 to signal tracee to proceed to exec
Previously we raise SIGSTOP in tracee and then waitpid in tracer before seizing it, which yields a group stop(I think this is actually an UNDOCUMENTED behavior) after seizing. It hits some ptrace quirks. For example, some child processes forked off after exec might caught this phantom ptrace group stop and hangs. So this patch instead uses a pipe between tracer and root tracee to communicate when to proceed to exec.
- Loading branch information
Showing
3 changed files
with
36 additions
and
42 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
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
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