Skip to main content

lock_path

Function lock_path 

Source
pub fn lock_path() -> PathBuf
Expand description

Advisory lock file used to serialize stale-daemon recovery across concurrent clients (flock/File::lock on the file; released when the lock file handle is dropped). Path computation is portable; kkernel exec’s non-unix local-construction guard (kkernel::exec::acquire_local_construction_guard) shares this exact path with the unix daemon-boot guard so the two stay mutually exclusive.

Overridable via the KHIVE_LOCK env var (for tests).