Skip to content

Commit

Permalink
mac/rlz: Correctly check for fd existence
Browse files Browse the repository at this point in the history
Found while looking at this file for http://crbug.com/143950, but
I don't think this causes that bug.

BUG=143950

Review URL: https://chromiumcodereview.appspot.com/10827449

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152616 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
thakis@chromium.org committed Aug 21, 2012
1 parent d425fea commit 45a193a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlz/mac/lib/rlz_value_store_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
}

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;
Expand Down

0 comments on commit 45a193a

Please sign in to comment.