diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-02-03 21:22:57 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-02-03 21:22:57 +0000 |
commit | f859a8d3c33cc275f41d983bfeff2a21a9f88f1b (patch) | |
tree | 8f242f4fc9d094a93b416f03b829d0f58af37bf0 /src/libstore/pathlocks.hh | |
parent | c45de33c67a7273fc87a654696d15010df0f5c6d (diff) |
* While waiting for a lock, print a sign of life every 5 minutes.
This prevents remote builders from being killed by the
`max-silent-time' inactivity monitor while they are waiting for a
long garbage collection to finish. This happens fairly often in the
Hydra build farm.
Diffstat (limited to 'src/libstore/pathlocks.hh')
-rw-r--r-- | src/libstore/pathlocks.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstore/pathlocks.hh b/src/libstore/pathlocks.hh index 57ca1584a..8c6ac6a03 100644 --- a/src/libstore/pathlocks.hh +++ b/src/libstore/pathlocks.hh @@ -17,7 +17,8 @@ void deleteLockFile(const Path & path, int fd); enum LockType { ltRead, ltWrite, ltNone }; -bool lockFile(int fd, LockType lockType, bool wait); +bool lockFile(int fd, LockType lockType, bool wait, + unsigned int progressInterval = 300); class PathLocks |