2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-02 15:45:25 +00:00

Use the newly accepted FD in TCP code.

This commit is contained in:
Witold Kręcicki
2018-10-04 14:32:28 +00:00
parent 88edf8fe4d
commit d652551e86

View File

@@ -3072,10 +3072,10 @@ internal_accept(isc__socket_t *sock) {
} }
LOCK(&nthread->fdlock[lockid]); LOCK(&nthread->fdlock[lockid]);
thread->fds[fd] = NEWCONNSOCK(dev); nthread->fds[fd] = NEWCONNSOCK(dev);
thread->fdstate[fd] = MANAGED; nthread->fdstate[fd] = MANAGED;
#if defined(USE_EPOLL) #if defined(USE_EPOLL)
thread->epoll_events[fd] = 0; nthread->epoll_events[fd] = 0;
#endif #endif
UNLOCK(&nthread->fdlock[lockid]); UNLOCK(&nthread->fdlock[lockid]);