mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 00:11:14 +02:00
rcinput: open input device with apropriate flags
This commit is contained in:
@@ -165,12 +165,8 @@ void CRCInput::open(int dev)
|
|||||||
if (i != dev || fd_rc[i] != -1)
|
if (i != dev || fd_rc[i] != -1)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if ((fd_rc[i] = ::open(RC_EVENT_DEVICE[i], O_RDWR)) == -1)
|
if ((fd_rc[i] = ::open(RC_EVENT_DEVICE[i], O_RDWR|O_NONBLOCK|O_CLOEXEC)) == -1)
|
||||||
perror(RC_EVENT_DEVICE[i]);
|
perror(RC_EVENT_DEVICE[i]);
|
||||||
else
|
|
||||||
{
|
|
||||||
fcntl(fd_rc[i], F_SETFL, O_NONBLOCK);
|
|
||||||
}
|
|
||||||
printf("CRCInput::open: %s fd %d\n", RC_EVENT_DEVICE[i], fd_rc[i]);
|
printf("CRCInput::open: %s fd %d\n", RC_EVENT_DEVICE[i], fd_rc[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user