Lines Matching full:handles
50 Handle handles[2] = { kInvalidHandle, kInvalidHandle };
51 if (socketpair(AF_UNIX, SOCK_STREAM, 0, handles) != 0)
57 if (0 != setsockopt(handles[0], SOL_SOCKET, SO_NOSIGPIPE,
59 0 != setsockopt(handles[1], SOL_SOCKET, SO_NOSIGPIPE,
65 // Copy the handles out for successful return.
66 socket_a->handle_ = handles[0];
67 socket_b->handle_ = handles[1];
72 if (handles[0] != kInvalidHandle) {
73 if (HANDLE_EINTR(close(handles[0])) < 0)
76 if (handles[1] != kInvalidHandle) {
77 if (HANDLE_EINTR(close(handles[1])) < 0)