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

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: Close and read error logging 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
Index: util/file/fd_io.cc
diff --git a/util/file/fd_io.cc b/util/file/fd_io.cc
index 46a3634fc7cda80e08ca6a83ec104170d6936b15..df4b3e93f227aac47a9a8f67c56cb00ffeace989 100644
--- a/util/file/fd_io.cc
+++ b/util/file/fd_io.cc
@@ -104,4 +104,10 @@ void CheckedReadFDAtEOF(int fd) {
}
}
+int CloseFD(int fd) {
+ int rv = IGNORE_EINTR(close(fd));
+ PLOG_IF(ERROR, rv != 0) << "close";
+ return rv;
+}
+
} // namespace crashpad

Powered by Google App Engine
This is Rietveld 408576698