mirror of
https://github.com/NixOS/nix
synced 2025-06-28 22:01:15 +02:00
* Make lock removal safe by signalling to blocked processes that the
lock they are waiting on has become stale (we do this by writing a meaningless token to the unlinked file).
This commit is contained in:
parent
a24b78e9f1
commit
59682e6188
4 changed files with 52 additions and 21 deletions
|
@ -12,8 +12,8 @@ bool lockFile(int fd, LockType lockType, bool wait);
|
|||
class PathLocks
|
||||
{
|
||||
private:
|
||||
list<int> fds;
|
||||
Paths paths;
|
||||
typedef pair<int, Path> FDPair;
|
||||
list<FDPair> fds;
|
||||
bool deletePaths;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue