Skip to main content

SERVE_LOCK

Constant SERVE_LOCK 

Source
pub const SERVE_LOCK: &str = "serve.lock";
Expand description

Basename of the shared lock a live mkit serve process holds for its whole lifetime (SPEC-CONCURRENCY §3.1, MKIT-11/#655). Lives in the common dir (FileTransport always serves a single-worktree root, so common dir and worktree state dir coincide there — see mkit_core::layout). Local mutating commands never take this lock themselves; they only probe_exclusive it via warn_if_served to detect a live serve.