| 628 | } |
| 629 | |
| 630 | static bool socket_disable_sigpipe(int fd) { |
| 631 | #ifdef SO_NOSIGPIPE |
| 632 | int enabled = 1; |
| 633 | return setsockopt(fd, SOL_SOCKET, SO_NOSIGPIPE, &enabled, sizeof(enabled)) == 0; |
| 634 | #else |
| 635 | (void)fd; |
| 636 | return true; |
| 637 | #endif |
| 638 | } |
| 639 | |
| 640 | static int local_socket_new(void) { |
| 641 | int fd = socket(AF_UNIX, SOCK_STREAM, 0); |
no outgoing calls
no test coverage detected