Lines Matching defs:epoll_fd
46 static int add_epoll(int epoll_fd, int fd) {
52 assert(epoll_fd >= 0);
56 r = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev);
58 return log_error_errno(errno, "Failed to add event on epoll fd:%d for fd:%d: %m", epoll_fd, fd);
63 static int open_sockets(int *epoll_fd, bool accept) {
113 *epoll_fd = epoll_create1(EPOLL_CLOEXEC);
114 if (*epoll_fd < 0)
123 r = add_epoll(*epoll_fd, fd);
466 int epoll_fd = -1;
479 n = open_sockets(&epoll_fd, arg_accept);
490 r = epoll_wait(epoll_fd, &event, 1, -1);