This was a regression introduced when select was changed to poll and was
just a conversion error: POLLPRI detects OOB data, not POLLERR.
(closes issue #18637)
Reported by: jvandal
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@306120
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
continue;
}
- if (!(fds[y].revents & (POLLIN | POLLERR))) {
+ if (!(fds[y].revents & (POLLIN | POLLERR | POLLPRI))) {
/* Next x */
continue;
}
- if (fds[y].revents & POLLERR) {
+ if (fds[y].revents & POLLPRI) {
ast_set_flag(chan, AST_FLAG_EXCEPTION);
} else {
ast_clear_flag(chan, AST_FLAG_EXCEPTION);
}
new_fds = tmp;
new_fds[new_nfds].fd = chan->fds[x];
- new_fds[new_nfds].events = POLLIN | POLLERR;
+ new_fds[new_nfds].events = POLLIN | POLLERR | POLLPRI;
new_fds[new_nfds].revents = 0;
new_nfds++;
}