diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2017-01-19 18:21:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-19 18:21:55 +0100 |
commit | 8af062f372ae5db6a90700641f15d98505b4a839 (patch) | |
tree | 1c4f61be3cca82b3a03255557d9e5f3d87107018 /src/libstore/pathlocks.cc | |
parent | 21948deed99a3295e4d5666e027a6ca42dc00b40 (diff) | |
parent | 28db29786277ce6790ffb1567f9e679c62737b96 (diff) |
Merge pull request #981 from shlevy/build-remote-c++
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 fecd63687..620c9a6b7 100644 --- a/src/libstore/pathlocks.cc +++ b/src/libstore/pathlocks.cc @@ -54,6 +54,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) { |