diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-27T12·19+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2005-01-27T12·19+0000 |
commit | 59682e618805701f9c249736514df6db457895f9 (patch) | |
tree | 4a66762d4dffe3d37ed84c13bd0d2c314275b233 /src/libstore/pathlocks.hh | |
parent | a24b78e9f1a7326badb6c38d5d63aeb6ccdf9970 (diff) |
* 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).
Diffstat (limited to 'src/libstore/pathlocks.hh')
-rw-r--r-- | src/libstore/pathlocks.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstore/pathlocks.hh b/src/libstore/pathlocks.hh index 433438906934..42ebe58df691 100644 --- a/src/libstore/pathlocks.hh +++ b/src/libstore/pathlocks.hh @@ -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: |