summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 00:34:04 +0000
committerthakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-04 00:34:04 +0000
commit34f40946dab92acf2c0b25c067e14bc438c1e676 (patch)
tree236343b5e718f6f88a88946c1b8a2c4697b790f8 /ipc
parent74e3af7013e7fb3ae9a9cbd98a7fcaf8469b1b0d (diff)
downloadchromium_src-34f40946dab92acf2c0b25c067e14bc438c1e676.zip
chromium_src-34f40946dab92acf2c0b25c067e14bc438c1e676.tar.gz
chromium_src-34f40946dab92acf2c0b25c067e14bc438c1e676.tar.bz2
clang/mac: Fix almost all problems when building all.xcodeproj.
BUG=None TEST=None TBR=hans git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61344 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_send_fds_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/ipc/ipc_send_fds_test.cc b/ipc/ipc_send_fds_test.cc
index 7001574..e1f19dc 100644
--- a/ipc/ipc_send_fds_test.cc
+++ b/ipc/ipc_send_fds_test.cc
@@ -125,7 +125,9 @@ MULTIPROCESS_TEST_MAIN(RunTestDescriptorClientSandboxed) {
struct stat st;
const int fd = open(kDevZeroPath, O_RDONLY);
fstat(fd, &st);
- HANDLE_EINTR(close(fd));
+ if (HANDLE_EINTR(close(fd)) < 0) {
+ return -1;
+ }
// Enable the Sandbox.
char* error_buff = NULL;