MCPcopy Create free account
hub / github.com/apache/trafficserver / accept4

Method accept4

src/iocore/eventsystem/UnixSocket.cc:65–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65int
66UnixSocket::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
79static int

Callers 2

acceptFastEventMethod · 0.80
acceptMethod · 0.80

Calls 2

accept4Function · 0.85
transient_errorFunction · 0.85

Tested by

no test coverage detected