summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 18:25:46 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-16 18:25:46 +0000
commit84f78468c2d465279280bc2061c4d019ad765a48 (patch)
treec64f343a73212b9cdaa016fdf0e6d320c6084a3f /app
parentc5a6ff1451d50cf5649b1920066331daefcc690b (diff)
downloadchromium_src-84f78468c2d465279280bc2061c4d019ad765a48.zip
chromium_src-84f78468c2d465279280bc2061c4d019ad765a48.tar.gz
chromium_src-84f78468c2d465279280bc2061c4d019ad765a48.tar.bz2
patch from issue 2762014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/surface/transport_dib_mac.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/surface/transport_dib_mac.cc b/app/surface/transport_dib_mac.cc
index ef1d242..f17835f 100644
--- a/app/surface/transport_dib_mac.cc
+++ b/app/surface/transport_dib_mac.cc
@@ -8,6 +8,7 @@
#include <sys/stat.h>
#include "base/eintr_wrapper.h"
+#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/shared_memory.h"
#include "skia/ext/platform_canvas.h"
@@ -47,7 +48,8 @@ TransportDIB* TransportDIB::Map(TransportDIB::Handle handle) {
if ((fstat(handle.fd, &st) != 0) ||
(!dib->shared_memory_.Map(st.st_size))) {
delete dib;
- HANDLE_EINTR(close(handle.fd));
+ if (HANDLE_EINTR(close(handle.fd)) < 0)
+ PLOG(ERROR) << "close";
return NULL;
}