diff options
Diffstat (limited to 'rlz/lib')
-rw-r--r-- | rlz/lib/recursive_cross_process_lock_posix.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rlz/lib/recursive_cross_process_lock_posix.cc b/rlz/lib/recursive_cross_process_lock_posix.cc index aa15897..c44cacf 100644 --- a/rlz/lib/recursive_cross_process_lock_posix.cc +++ b/rlz/lib/recursive_cross_process_lock_posix.cc @@ -59,7 +59,7 @@ bool RecursiveCrossProcessLock::TryGetCrossProcessLock( if (flock_result == -1) { perror("flock"); - ignore_result(HANDLE_EINTR(close(file_lock_))); + close(file_lock_); file_lock_ = -1; return false; } @@ -72,7 +72,7 @@ bool RecursiveCrossProcessLock::TryGetCrossProcessLock( void RecursiveCrossProcessLock::ReleaseLock() { if (file_lock_ != -1) { ignore_result(HANDLE_EINTR(flock(file_lock_, LOCK_UN))); - ignore_result(HANDLE_EINTR(close(file_lock_))); + close(file_lock_); file_lock_ = -1; } |