was_forked_from_pid1

Function was_forked_from_pid1 

Source
pub fn was_forked_from_pid1() -> bool
Expand description

Returns true if this process was forked from PID 1 and should use reboot(2) directly for shutdown.