From c5a6ff1451d50cf5649b1920066331daefcc690b Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Wed, 16 Jun 2010 18:25:42 +0000 Subject: patch git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49983 0039d316-1c4b-4281-b951-d872f2087c98 --- base/file_util.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'base') diff --git a/base/file_util.h b/base/file_util.h index a16c5c72..48f431f 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -35,6 +35,7 @@ #if defined(OS_POSIX) #include "base/eintr_wrapper.h" #include "base/file_descriptor_posix.h" +#include "base/logging.h" #endif namespace base { @@ -377,7 +378,8 @@ class ScopedFDClose { public: inline void operator()(int* x) const { if (x && *x >= 0) { - HANDLE_EINTR(close(*x)); + if (HANDLE_EINTR(close(*x)) < 0) + PLOG(ERROR) << "close"; } } }; -- cgit v1.1