Fix for ftdm_multiple_wait not reading proper file descriptors
git-svn-id: http://svn.openzap.org/svn/openzap/branches/sangoma_boost@1073 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
parent
6d05c98a82
commit
2340dfeac1
|
@ -432,9 +432,9 @@ FT_DECLARE(ftdm_status_t) ftdm_interrupt_multiple_wait(ftdm_interrupt_t *interru
|
||||||
return FTDM_TIMEOUT;
|
return FTDM_TIMEOUT;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = size; i < ftdm_array_len(ints); i++) {
|
for (i = 0; i < size; i++) {
|
||||||
if (ints[i].revents & POLLIN) {
|
if (ints[i].revents & POLLIN) {
|
||||||
res = read(ints[0].fd, pipebuf, sizeof(pipebuf));
|
res = read(ints[i].fd, pipebuf, sizeof(pipebuf));
|
||||||
if (res == -1) {
|
if (res == -1) {
|
||||||
ftdm_log(FTDM_LOG_CRIT, "reading interrupt descriptor failed (%s)\n", strerror(errno));
|
ftdm_log(FTDM_LOG_CRIT, "reading interrupt descriptor failed (%s)\n", strerror(errno));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue