diff options
-rw-r--r-- | rlz/mac/lib/rlz_value_store_mac.mm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rlz/mac/lib/rlz_value_store_mac.mm b/rlz/mac/lib/rlz_value_store_mac.mm index 11a3c3d..b1d082d 100644 --- a/rlz/mac/lib/rlz_value_store_mac.mm +++ b/rlz/mac/lib/rlz_value_store_mac.mm @@ -296,7 +296,7 @@ bool RecursiveCrossProcessLock::TryGetCrossProcessLock( } void RecursiveCrossProcessLock::ReleaseLock() { - if (file_lock_) { + if (file_lock_ != -1) { ignore_result(HANDLE_EINTR(flock(file_lock_, LOCK_UN))); ignore_result(HANDLE_EINTR(close(file_lock_))); file_lock_ = -1; |