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

Unified Diff: ppapi/tests/test_broker.cc

Issue 8591008: Add EINTR handling on ::close() calls in ppapi broker ui test. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_broker.cc
diff --git a/ppapi/tests/test_broker.cc b/ppapi/tests/test_broker.cc
index a1e271473b4828ab9b8a22b57e399aceb77bcae3..22e3e626cfc97b097205d82db7aed9c817b13fe6 100644
--- a/ppapi/tests/test_broker.cc
+++ b/ppapi/tests/test_broker.cc
@@ -120,7 +120,7 @@ bool ClosePlatformFile(PlatformFile file) {
#if defined(OS_WIN)
return !!::CloseHandle(file);
#elif defined(OS_POSIX)
- return !::close(file);
+ return !HANDLE_EINTR(::close(file));
#endif
}
@@ -146,7 +146,7 @@ bool VerifyIsUnsandboxed() {
if (-1 == fd)
return false;
- if (::close(fd)) {
+ if (HANDLE_EINTR(::close(fd))) {
::remove(file_name);
return false;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698