Skip to main content

Module lock

Module lock 

Source
Expand description

Per-sandbox lock, so two concurrent up/ensure calls do not both create.

An flock on $XDG_RUNTIME_DIR/isb/<project>/<name>.lock. The fd is opened close-on-exec (Rust’s default), so it never leaks into a child process: a long-lived child such as a dev server holding it would block every later task.

Structs§

NameLock
Held for its lifetime; released on drop.