| 795 | } |
| 796 | |
| 797 | static bool fd_set_nonblocking(int fd) { |
| 798 | int flags = fcntl(fd, F_GETFL); |
| 799 | return flags >= 0 && fcntl(fd, F_SETFL, flags | O_NONBLOCK) == 0; |
| 800 | } |
| 801 | |
| 802 | static bool socket_disable_sigpipe(int fd) { |
| 803 | #ifdef SO_NOSIGPIPE |
no outgoing calls
no test coverage detected