/// Load currently running procs, and die if there is a surprising error
Load currently running procs, and die if there is a surprising error
Load currently running procs and die if there is a surprising error
fn load_procs(load_errors: &mut Vec<ProcFsError>) -> RunningProcs {
    match RunningProcs::currently_running() {
        Ok(procs) => procs,
        Err(ProcFsError::LoadProcsError(LoadProcsError { procs, errors })) => {
            load_errors.extend(errors.into_iter());
            procs
        }
        Err(err) => {
            eprintln!("Unexpected error loading procs: {}", err);
            Status::Unknown.exit()
        }
    }
}
fn load_procs ( load_errors : & mut Vec < ProcFsError > ) -> RunningProcs { match RunningProcs :: currently_running ( ) { Ok ( procs ) => procs , Err ( ProcFsError :: LoadProcsError ( LoadProcsError { procs , errors } ) ) => { load_errors . extend ( errors . into_iter ( ) ) ; procs } Err ( err ) => { eprintln ! ( " " err ) ; Status :: Unknown . exit ( ) } } }
Load currently running procs, and die if there is a surprising error
Load currently running procs and die if there is a surprising error
load_errors
&mut Vec<ProcFsError>