| 621 | } |
| 622 | |
| 623 | static bool socket_disable_sigpipe(int fd) { |
| 624 | #ifdef SO_NOSIGPIPE |
| 625 | int enabled = 1; |
| 626 | return setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &enabled, sizeof(enabled)) == 0; |
| 627 | #else |
| 628 | (void)fd; |
| 629 | return true; |
| 630 | #endif |
| 631 | } |
| 632 | |
| 633 | static int local_socket_new(void) { |
| 634 | int fd = socket(AF_UNIX, SOCK_STREAM, 0); |
no outgoing calls
no test coverage detected