From 355c928eb49ca4a0dd2147010846ac85c378dce5 Mon Sep 17 00:00:00 2001 From: "xhwang@chromium.org" Date: Wed, 23 Nov 2011 18:57:21 +0000 Subject: Add EINTR handling on ::close() calls in ppapi broker ui test. This change goes with r110241. BUG=none TEST=broker ui test passes Review URL: http://codereview.chromium.org/8591008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111381 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/tests/test_broker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ppapi') diff --git a/ppapi/tests/test_broker.cc b/ppapi/tests/test_broker.cc index a1e2714..22e3e62 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; } -- cgit v1.1