linuxdvb: appears some tuners are not supporting FE_GET_EVENT
This results in a terminal lockup as the ioctl() will loop indefinitely, testing for != -1 was always a bad idea!
This commit is contained in:
parent
f88f2f33ff
commit
dcdef424fc
1 changed files with 1 additions and 1 deletions
|
@ -1328,7 +1328,7 @@ linuxdvb_frontend_tune0
|
|||
|
||||
/* discard stale events */
|
||||
while (1) {
|
||||
if (ioctl(lfe->lfe_fe_fd, FE_GET_EVENT, &ev) == -1)
|
||||
if (ioctl(lfe->lfe_fe_fd, FE_GET_EVENT, &ev) < 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue