diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 18:25:42 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 18:25:42 +0000 |
commit | c5a6ff1451d50cf5649b1920066331daefcc690b (patch) | |
tree | 54503b6cb296273503ef1f6762b5c8f3f1cfcf0c /base | |
parent | c21e0e82db0a3e9a60940f7ceea74edb5a1c4122 (diff) | |
download | chromium_src-c5a6ff1451d50cf5649b1920066331daefcc690b.zip chromium_src-c5a6ff1451d50cf5649b1920066331daefcc690b.tar.gz chromium_src-c5a6ff1451d50cf5649b1920066331daefcc690b.tar.bz2 |
patch
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/file_util.h | 4 |
1 files changed, 3 insertions, 1 deletions
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"; } } }; |