mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
triple: fix narrowing warning in video_td, add FD_CLOEXEC
This commit is contained in:
@@ -113,6 +113,7 @@ bool cRecord::Start(int fd, unsigned short vpid, unsigned short *apids, int nump
|
||||
pd->dmx->addPid(apids[i]);
|
||||
|
||||
pd->file_fd = fd;
|
||||
fcntl(fd, F_SETFD, fcntl(fd, F_GETFD)|FD_CLOEXEC);
|
||||
pd->exit_flag = RECORD_RUNNING;
|
||||
if (posix_fadvise(pd->file_fd, 0, 0, POSIX_FADV_DONTNEED))
|
||||
perror("posix_fadvise");
|
||||
|
Reference in New Issue
Block a user