Skip to content

Commit

Permalink
Treat POLLHUP as EOF not an error, fixes IVTV (PVR-) recorders failin…
Browse files Browse the repository at this point in the history
…g. Based on patch from ltskinol@gmail.com Fixes #10732

(cherry picked from commit 3d13d79)
  • Loading branch information
stuartm committed Nov 29, 2012
1 parent 76d9c3e commit 11ef563
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mythtv/libs/libmythtv/DeviceReadBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,12 @@ bool DeviceReadBuffer::Poll(void) const

int ret = poll(polls, poll_cnt, timeout);

if (polls[0].revents & (POLLHUP | POLLNVAL))
if (polls[0].revents & POLLHUP)
{
LOG(VB_GENERAL, LOG_ERR, LOC + "poll eof (POLLHUP)");
break;
}
else if (polls[0].revents & POLLNVAL)
{
LOG(VB_GENERAL, LOG_ERR, LOC + "poll error");
error = true;
Expand Down

0 comments on commit 11ef563

Please sign in to comment.