pub fn exit_status(&self) -> Option<i32> {
        if self.state == State::Dead {
            Some(self.exit_status)
        } else {
            None
        }
    }
/// Returns the exit status of the process if it has exited.
Returns the exit status of the process if it has exited.
Returns the exit status of the process if it has exited .
pub fn exit_status(&self) -> Option<i32> {
        if self.state == State::Dead {
            Some(self.exit_status)
        } else {
            None
        }
    }
pub fn exit_status ( & self ) -> Option < i32 > { if self . state == State :: Dead { Some ( self . exit_status ) } else { None } }
Returns the exit status of the process if it has exited.
Returns the exit status of the process if it has exited .
&self