Skip to content

[feature request] waitpid via epoll() #399

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

Open
FurryR opened this issue Apr 22, 2025 · 1 comment · May be fixed by #400
Open

[feature request] waitpid via epoll() #399

FurryR opened this issue Apr 22, 2025 · 1 comment · May be fixed by #400

Comments

@FurryR
Copy link

FurryR commented Apr 22, 2025

Currently the implementation waitpid is using spin waiting, which could lead to performance issues. It is possible to refactor it via pidfd_open and epoll to allow CPU to save battery.

This issue is used for being linked to any future Pull Requests.

sleep(Duration::from_millis(50));

@FurryR FurryR linked a pull request Apr 24, 2025 that will close this issue
@FurryR
Copy link
Author

FurryR commented Apr 24, 2025

Linked a possible solution here. The new implementation referred to waitpid-any, which is distributed under either MIT License or Apache-2.0 License, so it should be fine. I also credited the author in the source file.

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 a pull request may close this issue.

1 participant