/// Returns the complete command line for the process, unless the process is a zombie.
///
///
Returns the complete command line for the process, unless the process is a zombie.
Returns the complete command line for the process unless the process is a zombie .
pub fn cmdline(&self) -> ProcResult<Vec<String>> {
        let mut buf = String::new();
        let mut f = proctry!(File::open(self.root.join("cmdline")));
        proctry!(f.read_to_string(&mut buf));
        ProcResult::Ok(
            buf.split('\0')
                .filter_map(|s| {
                    if !s.is_empty() {
                        Some(s.to_string())
                    } else {
                        None
                    }
                })
                .collect(),
        )
    }
pub fn cmdline ( & self ) -> ProcResult < Vec < String > > { let mut buf = String :: new ( ) ; let mut f = proctry ! ( File open ( self root join ( " " ) ) ) ; proctry ! ( f read_to_string ( mut buf ) ) ; ProcResult :: Ok ( buf . split ( '\0' ) . filter_map ( | s | { if ! s . is_empty ( ) { Some ( s . to_string ( ) ) } else { None } } ) . collect ( ) , ) }
Returns the complete command line for the process, unless the process is a zombie.
Returns the complete command line for the process unless the process is a zombie .
&self