From 59682e618805701f9c249736514df6db457895f9 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 27 Jan 2005 12:19:25 +0000 Subject: * 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). --- src/libstore/pathlocks.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstore/pathlocks.hh') diff --git a/src/libstore/pathlocks.hh b/src/libstore/pathlocks.hh index 433438906..42ebe58df 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 fds; - Paths paths; + typedef pair FDPair; + list fds; bool deletePaths; public: -- cgit v1.2.3