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

Only poll known tracees with wait(2) #102

Merged
merged 3 commits into from
Sep 5, 2023
Merged

Only poll known tracees with wait(2) #102

merged 3 commits into from
Sep 5, 2023

Conversation

ranweiler
Copy link
Owner

  • Only poll known tracee PIDs with wait(2) to avoid breaking std::process::Child::wait()
  • Poll tracees with WNOHANG, apply cool-off poll delay if no new statuses
  • Add accessors to allow tuning poll delay, default to 100ms
  • Add test case

Closes #100.

@ranweiler ranweiler merged commit d16f916 into main Sep 5, 2023
10 checks passed
@ranweiler ranweiler deleted the poll-tracees branch September 5, 2023 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tracer calls to waitpid() leave non-tracees un-waitable
1 participant