Skip to content

set_child_subreaper: What's the pid argument supposed to do? #1438

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
rusty-snake opened this issue Apr 8, 2025 · 1 comment
Open

set_child_subreaper: What's the pid argument supposed to do? #1438

rusty-snake opened this issue Apr 8, 2025 · 1 comment

Comments

@rusty-snake
Copy link
Contributor

The kernel knows for set_child_subreaper only poor man boolean (int == 0/!= 0).

@sunfishcode
Copy link
Member

Indeed, that looks like an error. It should be a bool rather than an Option<Pid>. We should deprecate child_subreaper and set_child_subreaper and add new functions with the correct types.

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

No branches or pull requests

2 participants