pub fn parse_pid_file(text: &str) -> Result<u32, PidFileError>Expand description
Parse the text of a PID file (its first line, trimmed). Only a decimal
PID in 2..=i32::MAX is accepted; empty text, garbage, signs, zero,
PID 1 and overflowing values are refused, so a corrupt file can never
become a signal target.