waitid

Function waitid 

Source
pub fn waitid(pidfd: &impl AsFd) -> Result<WaitStatus, Errno>