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 |