Skip to main content

ps_field

Function ps_field 

Source
fn ps_field(pid: i32, field: &str, with_env: bool) -> Option<String>
Expand description

One ps field for pid (ww: untruncated; with_env: append the process’ environment, ps e), or None if it isn’t running. Never log the result: it can hold another process’ secrets.