1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

* 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.
This commit is contained in:
Eelco Dolstra 2010-02-03 21:22:57 +00:00
parent c45de33c67
commit f859a8d3c3
3 changed files with 27 additions and 3 deletions

View file

@ -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