Skip to main content

Module locking

Module locking 

Source
Expand description

Writer lock management for single-writer / multi-reader concurrency.

Implements the advisory lock file protocol from spec 09:

  • Lock file at {path}.lock with PID, hostname, timestamp, UUID
  • Stale lock detection via PID liveness and age threshold
  • Atomic creation via O_CREAT | O_EXCL