| 63 | } |
| 64 | |
| 65 | int |
| 66 | UnixSocket::accept4(struct sockaddr *addr, socklen_t *addrlen, int flags) const |
| 67 | { |
| 68 | do { |
| 69 | int fd = ::accept4(this->fd, addr, addrlen, flags); |
| 70 | if (likely(fd >= 0)) { |
| 71 | return fd; |
| 72 | } |
| 73 | } while (transient_error()); |
| 74 | |
| 75 | return -errno; |
| 76 | } |
| 77 | |
| 78 | #if !HAVE_ACCEPT4 |
| 79 | static int |
no test coverage detected