Index: mojo/edk/embedder/platform_channel_pair_posix.cc |
diff --git a/mojo/edk/embedder/platform_channel_pair_posix.cc b/mojo/edk/embedder/platform_channel_pair_posix.cc |
index f9886b56b19329aa1a9744028204d4360d734edc..2242cce61b8295b373f0def91baf877d432c4cc6 100644 |
--- a/mojo/edk/embedder/platform_channel_pair_posix.cc |
+++ b/mojo/edk/embedder/platform_channel_pair_posix.cc |
@@ -46,14 +46,10 @@ PlatformChannelPair::PlatformChannelPair() { |
// fail with |EPIPE| instead). On Linux, we have to use |send...()| with |
// |MSG_NOSIGNAL| -- which is not supported on Mac -- instead. |
int no_sigpipe = 1; |
- PCHECK( |
- setsockopt( |
- fds[0], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, sizeof(no_sigpipe)) == |
- 0); |
- PCHECK( |
- setsockopt( |
- fds[1], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, sizeof(no_sigpipe)) == |
- 0); |
+ PCHECK(setsockopt(fds[0], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, |
+ sizeof(no_sigpipe)) == 0); |
+ PCHECK(setsockopt(fds[1], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, |
+ sizeof(no_sigpipe)) == 0); |
#endif // defined(OS_MACOSX) |
server_handle_.reset(PlatformHandle(fds[0])); |