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

Unified Diff: rlz/lib/recursive_cross_process_lock_posix.cc

Issue 100253002: Don't HANDLE_EINTR(close). Either IGNORE_EINTR(close) or just close. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 | « remoting/host/local_input_monitor_linux.cc ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf.cc » ('j') | 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 aa15897078fc681abe86f22f7b7968533dccd7e8..c44cacfd7c652e66af1f5d4536300555d62fa7d4 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;
}
« no previous file with comments | « remoting/host/local_input_monitor_linux.cc ('k') | sandbox/linux/seccomp-bpf/sandbox_bpf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698