PidLock
mill.client.lock.PidLock
A lock implementation that uses atomic file creation and PID + timestamp checking. This works on filesystems that don't support file locking (e.g. Docker containers on macOS), but at the cost of potential race conditions.
The lock file contains "pid:startTime" which uniquely identifies a process even if PIDs are reused after a process dies.
Attributes
- Source
- PidLock.scala
- Graph
-
- Supertypes
Members list
In this article