fn wait_child( id: Id<'_>, flags: WaitPidFlag, ) -> Result<Option<(Pid, ChildExit)>>
The waitid(2) behind wait_exit, which also reports real-time signals, along with the PID of the child.
wait_exit