rustix icon indicating copy to clipboard operation
rustix copied to clipboard

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

Open rusty-snake opened this issue 7 months ago • 2 comments

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

rusty-snake avatar Apr 08 '25 17:04 rusty-snake

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.

sunfishcode avatar Apr 09 '25 13:04 sunfishcode

Ideas for nameing? child_subreaper2

rusty-snake avatar May 01 '25 08:05 rusty-snake