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

Use async pid fd instead of blocking waitid to wait for a child process to exit #745

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jprendes
Copy link
Collaborator

This PR replaces the blocking waitid call with an async implementation based on pid-fd.
This is the same strategy employed by tokio::process.

This PR is in preparation to move the whole shim implementation to async.

…ss to exit

Signed-off-by: Jorge Prendes <jorge.prendes@gmail.com>
Copy link
Member

@andreiltd andreiltd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@Mossaka Mossaka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jprendes
Copy link
Collaborator Author

I still need to figure out why CI is failing. I think the http_poxy container is not receiving the SiGINT for some reason. But I don't see how that can relate to this. I'll keep digging tomorrow.

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.

3 participants