Index: app/surface/transport_dib_mac.cc |
diff --git a/app/surface/transport_dib_mac.cc b/app/surface/transport_dib_mac.cc |
index ef1d24251d675fd343edb60552be43dd8fde91da..f17835ff2fbc6e203cdf6fd7c8b979a74a0f2549 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; |
} |