diff options
author | Craig Tiller <ctiller@google.com> | 2015-12-07 16:14:06 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-12-07 16:14:06 -0800 |
commit | 656f7d876baefc2072d79e9f69b9d6bfc5559672 (patch) | |
tree | b8115cab9f3789d09fc062435e261438782c2ed7 /src/core/iomgr | |
parent | f62c4d5a988f37d812373580137ff69a77305102 (diff) | |
parent | fc4399411cfeb86bf6e29c2067cb8ddc352c3e25 (diff) |
Merge github.com:grpc/grpc into connected-subchannel
Diffstat (limited to 'src/core/iomgr')
-rw-r--r-- | src/core/iomgr/endpoint_pair_posix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/iomgr/endpoint_pair_posix.c b/src/core/iomgr/endpoint_pair_posix.c index deae9c6875..56f6f146fd 100644 --- a/src/core/iomgr/endpoint_pair_posix.c +++ b/src/core/iomgr/endpoint_pair_posix.c @@ -36,6 +36,7 @@ #ifdef GPR_POSIX_SOCKET #include "src/core/iomgr/endpoint_pair.h" +#include "src/core/iomgr/socket_utils_posix.h" #include <errno.h> #include <fcntl.h> @@ -56,6 +57,8 @@ static void create_sockets(int sv[2]) { GPR_ASSERT(fcntl(sv[0], F_SETFL, flags | O_NONBLOCK) == 0); flags = fcntl(sv[1], F_GETFL, 0); GPR_ASSERT(fcntl(sv[1], F_SETFL, flags | O_NONBLOCK) == 0); + GPR_ASSERT(grpc_set_socket_no_sigpipe_if_possible(sv[0])); + GPR_ASSERT(grpc_set_socket_no_sigpipe_if_possible(sv[1])); } grpc_endpoint_pair grpc_iomgr_create_endpoint_pair(const char *name, |