31 #define POLLFD(ptr) ((struct pollfd *)(ptr))
40 struct pollfd * fda = &(this->fds[2]);
41 struct pollfd * fdb = &(this->fds[this->nfds-1]);
44 while (0 == fdb->fd && fda <= fdb) {
49 while (0 != fda->fd && fda <= fdb) fda++;
52 memcpy(fda, fdb,
sizeof(
struct pollfd));
62 if (-1 == (events = poll(this->fds, this->nfds, -1))) {
73 "poll systemcall failed: [%s] - service terminated",
void loggerLog(void *, logger_level, const char *const,...)
int serverPoll(Server this)