Skip to main content

read_pid

Function read_pid 

Source
pub fn read_pid(session_key: &str) -> Option<u32>
Expand description

Read the PID from the pid file and check if the process is alive.

Returns Some(pid) if the file exists and the process is running, None if the file is missing, unreadable, or the process is dead.