Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4795)

Unified Diff: chrome/common/transport_dib_mac.cc

Issue 100225: POSIX: Add a macro for handling EINTR. (Closed)
Patch Set: ... Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/process_watcher_posix.cc ('k') | net/base/file_stream_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/transport_dib_mac.cc
diff --git a/chrome/common/transport_dib_mac.cc b/chrome/common/transport_dib_mac.cc
index 4ac44fc2439f76d1ddcb60f22b67750f6bca30df..77717d35c15f6bc1d408623c3a67dcb01ca2d99f 100644
--- a/chrome/common/transport_dib_mac.cc
+++ b/chrome/common/transport_dib_mac.cc
@@ -6,6 +6,8 @@
#include <unistd.h>
#include <sys/stat.h>
+
+#include "base/eintr_wrappers.h"
#include "base/shared_memory.h"
TransportDIB::TransportDIB()
@@ -41,7 +43,7 @@ TransportDIB* TransportDIB::Map(TransportDIB::Handle handle) {
if (!dib->shared_memory_.Map(st.st_size)) {
delete dib;
- close(handle.fd);
+ HANDLE_EINTR(close(handle.fd));
return false;
}
« no previous file with comments | « chrome/common/process_watcher_posix.cc ('k') | net/base/file_stream_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698