diff options
author | Shea Levy <shea@shealevy.com> | 2016-07-18 18:50:27 -0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2016-11-10 11:09:15 -0500 |
commit | 167d12b02cc8cadfaf7c28959532030d65687a8f (patch) | |
tree | 37907cb4370b395da98c592ae1b73070acd8ed2b /src/libstore/pathlocks.cc | |
parent | 2af5d35fdc1171a9bdab7e2fc005673d76417c06 (diff) |
build-remote: Implement in C++
Diffstat (limited to 'src/libstore/pathlocks.cc')
-rw-r--r-- | src/libstore/pathlocks.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/pathlocks.cc b/src/libstore/pathlocks.cc index 8788ee164..8fc862073 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) { |