pub(crate) async fn wait_for_exit(process: &Process) -> i32Expand description
Wait for the exit of a registered child like wait_for_exit_code,
through the pidfd it holds already, so that the wait opens none of its
own. Without one, on kernels before 5.3, the wait falls back like for a
PID.