mirror of
https://github.com/rofafor/vdr-plugin-satip.git
synced 2023-10-10 13:37:42 +02:00
Change EINTR handling in poller.
This commit is contained in:
parent
fe532e2248
commit
d5e0106d8e
2
poller.c
2
poller.c
@ -79,7 +79,7 @@ void cSatipPoller::Action(void)
|
|||||||
// Do the thread loop
|
// Do the thread loop
|
||||||
while (Running()) {
|
while (Running()) {
|
||||||
int nfds = epoll_wait(fdM, events, eMaxFileDescriptors, -1);
|
int nfds = epoll_wait(fdM, events, eMaxFileDescriptors, -1);
|
||||||
ERROR_IF_FUNC((nfds == -1), "epoll_wait() failed", break, ;);
|
ERROR_IF_FUNC((nfds == -1 && errno != EINTR), "epoll_wait() failed", break, ;);
|
||||||
for (int i = 0; i < nfds; ++i) {
|
for (int i = 0; i < nfds; ++i) {
|
||||||
cSatipPollerIf* poll = reinterpret_cast<cSatipPollerIf *>(events[i].data.ptr);
|
cSatipPollerIf* poll = reinterpret_cast<cSatipPollerIf *>(events[i].data.ptr);
|
||||||
if (poll) {
|
if (poll) {
|
||||||
|
Loading…
Reference in New Issue
Block a user