src/server/daemon/event_linux.c

changeset 617
01228719b3ce
parent 552
4ed0e46aa9dc
equal deleted inserted replaced
616:7a0a364a1d67 617:01228719b3ce
61 handler->ep = epoll_create(64); 61 handler->ep = epoll_create(64);
62 if(handler->ep < 0) { 62 if(handler->ep < 0) {
63 log_ereport(LOG_FAILURE, "evhandler_create: epoll_create: %s", strerror(errno)); 63 log_ereport(LOG_FAILURE, "evhandler_create: epoll_create: %s", strerror(errno));
64 return NULL; 64 return NULL;
65 } 65 }
66 log_ereport(LOG_DEBUG, "evhandler_create: epoll fd %d", handler->ep);
66 67
67 handler->event_fd = eventfd(0, EFD_NONBLOCK); 68 handler->event_fd = eventfd(0, EFD_NONBLOCK);
68 if(handler->event_fd < 0) { 69 if(handler->event_fd < 0) {
69 log_ereport(LOG_FAILURE, "evhandler_create: eventfd: %s", strerror(errno)); 70 log_ereport(LOG_FAILURE, "evhandler_create: eventfd: %s", strerror(errno));
70 return NULL; 71 return NULL;

mercurial