init_as_pid1

Function init_as_pid1 

Source
pub fn init_as_pid1() -> Result<()>
Expand description

Perform minimal init duties and fork.

Mounts /dev, /proc, /sys, then forks. Returns Ok(()) in the child (which should continue to run the pipette agent). Never returns in the parent (PID 1 stays in a reap loop until the child exits, then calls reboot(2) to power off).