Skip to main content

adopt_from_env

Function adopt_from_env 

Source
pub fn adopt_from_env() -> Result<Option<(DaemonLock, ReloadState, PathBuf)>>
Expand description

New-image side (Daemon::start): when RELOAD_STATE_ENV is set, the lock is ADOPTED from LOCK_FD_ENV (mandatory — refuse to start without it, risk §6.8) and the recorded generation is returned.