X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Feventl.c;h=2e39b3ab122b6732ab36dd0a24f0402750ed131f;hb=0d45377ca625dc66907c18bb3f524f9d6c354236;hp=1bcba5b825c9e35650298eef651dc04e98ddd4b4;hpb=0f1fa7a2780b5d03377a4b4e57cba09c83f7b987;p=pazpar2-moved-to-github.git diff --git a/src/eventl.c b/src/eventl.c index 1bcba5b..2e39b3a 100644 --- a/src/eventl.c +++ b/src/eventl.c @@ -272,6 +272,7 @@ static int event_loop(iochan_man_t man, IOCHAN *iochans) if (fds[i].input_mask) fds[i].fd = p->fd; } + assert(i == no_fds); yaz_log(man->log_level, "yaz_poll begin nofds=%d", no_fds); res = yaz_poll(fds, no_fds, tv_sec, 0); yaz_log(man->log_level, "yaz_poll returned res=%d", res); @@ -282,7 +283,7 @@ static int event_loop(iochan_man_t man, IOCHAN *iochans) else { yaz_log(YLOG_ERRNO | YLOG_WARN, "poll"); - return 0; + abort(); } } if (man->sel_fd != -1)