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

Unified Diff: util/file/fd_io.cc

Issue 669153006: Add HTTPBodyStream interface, three concrete implementations, and their tests. (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 6 years, 2 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 | « util/file/fd_io.h ('k') | util/net/http_body.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: util/file/fd_io.cc
diff --git a/util/file/fd_io.cc b/util/file/fd_io.cc
index 46a3634fc7cda80e08ca6a83ec104170d6936b15..95257d83d758b056cebbd12e63b6a89ec9007520 100644
--- a/util/file/fd_io.cc
+++ b/util/file/fd_io.cc
@@ -104,4 +104,10 @@ void CheckedReadFDAtEOF(int fd) {
}
}
+bool LoggingCloseFD(int fd) {
+ int rv = IGNORE_EINTR(close(fd));
+ PLOG_IF(ERROR, rv != 0) << "close";
+ return rv == 0;
+}
+
} // namespace crashpad
« no previous file with comments | « util/file/fd_io.h ('k') | util/net/http_body.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698