Skip to main content

main_pid

Function main_pid 

Source
pub fn main_pid(pid: u32) -> Result<bool>
Expand description

Send MAINPID=<pid> so systemd tracks the new master after a hot-upgrade re-exec hands the supervision off to a forked child. pid is unsigned because MAINPID= accepts unsigned decimal per sd_notify(3); callers convert from std::process::id() directly.