Skip to main content

read_proc_cmdline

Function read_proc_cmdline 

Source
pub fn read_proc_cmdline(pid: i32) -> Result<String, CoreError>
Expand description

Read process command line from /proc/<pid>/cmdline.

NUL separators are converted into spaces so the returned string is easier to log or inspect.