Skip to main content

parse_stat_starttime

Function parse_stat_starttime 

Source
pub fn parse_stat_starttime(content: &str) -> Option<u64>
Expand description

Parse the process start time (starttime, field 22) from the contents of a /proc/<pid>/stat file.

starttime is a monotonically increasing value (in clock ticks since boot) that uniquely identifies a process incarnation. It is the freshness token the session-sweep machinery compares against before killing by numeric sid, so a recycled pid that belongs to an unrelated new session is never hit (finding F8 / A4-5 class).