Skip to content

Commit

Permalink
rlz: Silence spam from RecursiveCrossProcessLock
Browse files Browse the repository at this point in the history
Change perror() to VPLOG() to avoid spamming the console with these
errors (they reliably occur on the login screen).

BUG=463306
TEST=build, boot, & login to pixel

Review URL: https://codereview.chromium.org/1096203003

Cr-Commit-Position: refs/heads/master@{#326621}
  • Loading branch information
mspang authored and Commit bot committed Apr 23, 2015
1 parent cf12469 commit ce89b91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rlz/lib/recursive_cross_process_lock_posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ bool RecursiveCrossProcessLock::TryGetCrossProcessLock(
CHECK(file_lock_ == -1);
file_lock_ = open(lock_filename.value().c_str(), O_RDWR | O_CREAT, 0666);
if (file_lock_ == -1) {
perror("open");
VPLOG(1) << "Failed to open: " << lock_filename.value();
return false;
}

Expand All @@ -58,7 +58,7 @@ bool RecursiveCrossProcessLock::TryGetCrossProcessLock(
}

if (flock_result == -1) {
perror("flock");
VPLOG(1) << "Failed flock: " << lock_filename.value();
close(file_lock_);
file_lock_ = -1;
return false;
Expand Down

0 comments on commit ce89b91

Please sign in to comment.