Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1245)

Unified Diff: rlz/lib/recursive_cross_process_lock_posix.cc

Issue 1096203003: rlz: Silence spam from lock RecursiveCrossProcessLock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops.. add .value() Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/lib/recursive_cross_process_lock_posix.cc
diff --git a/rlz/lib/recursive_cross_process_lock_posix.cc b/rlz/lib/recursive_cross_process_lock_posix.cc
index c44cacfd7c652e66af1f5d4536300555d62fa7d4..965bd9acdd4e0f97bf145c2f9f8b7cebedc317fd 100644
--- a/rlz/lib/recursive_cross_process_lock_posix.cc
+++ b/rlz/lib/recursive_cross_process_lock_posix.cc
@@ -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;
}
@@ -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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698