Permalink
Browse files

Treat POLLHUP as EOF not an error, fixes IVTV (PVR-) recorders failin…

…g. Based on patch from ltskinol@gmail.com Fixes #10732
  • Loading branch information...
stuartm committed Nov 29, 2012
1 parent b477111 commit 3d13d795b2ae4a66f4bd3e5bdfd4168c66474282
Showing with 6 additions and 1 deletion.
  1. +6 −1 mythtv/libs/libmythtv/recorders/DeviceReadBuffer.cpp
@@ -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;

0 comments on commit 3d13d79

Please sign in to comment.