From 167d12b02cc8cadfaf7c28959532030d65687a8f Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Mon, 18 Jul 2016 18:50:27 -0400 Subject: build-remote: Implement in C++ --- src/libstore/pathlocks.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstore/pathlocks.cc') diff --git a/src/libstore/pathlocks.cc b/src/libstore/pathlocks.cc index 8788ee1649fb..8fc862073030 100644 --- a/src/libstore/pathlocks.cc +++ b/src/libstore/pathlocks.cc @@ -53,6 +53,8 @@ bool lockFile(int fd, LockType lockType, bool wait) checkInterrupt(); if (errno != EINTR) throw SysError(format("acquiring/releasing lock")); + else + return false; } } else { while (fcntl(fd, F_SETLK, &lock) != 0) { -- cgit 1.4.1