Function update_process_states

Source
pub fn update_process_states(
    states: &mut Vec<ProcessState>,
    wnohang: bool,
) -> bool
Expand description

Updates the process state values if the pid is done running. Returns true if all pids are finished, otherwise false.

  • wnohang if waitpid uses WNOHANG-flag. In other words: true means “wait blocking” and false means “update but don’t block”.