| 800 | } |
| 801 | |
| 802 | static bool socket_disable_sigpipe(int fd) { |
| 803 | #ifdef SO_NOSIGPIPE |
| 804 | int enabled = 1; |
| 805 | return setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &enabled, sizeof(enabled)) == 0; |
| 806 | #else |
| 807 | (void)fd; |
| 808 | return true; |
| 809 | #endif |
| 810 | } |
| 811 | |
| 812 | static int local_socket_new(void) { |
| 813 | int fd = socket(AF_UNIX, SOCK_STREAM, 0); |
no outgoing calls
no test coverage detected