mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-27 23:42:43 +02:00
libtriple: try to make all filedescriptors O_CLOEXEC
Origin commit data
------------------
Branch: master
Commit: 5a8f5b3b20
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2011-12-04 (Sun, 04 Dec 2011)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -260,6 +260,7 @@ void cPlayback::playthread(void)
|
||||
lt_info("%s open tdpvr failed: %m\n", __FUNCTION__);
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
fcntl(dvrfd, F_SETFD, FD_CLOEXEC);
|
||||
|
||||
pthread_cleanup_push(playthread_cleanup_handler, 0);
|
||||
|
||||
@@ -657,6 +658,7 @@ int cPlayback::mf_open(int fileno)
|
||||
mf_close();
|
||||
|
||||
in_fd = open(filelist[fileno].Name.c_str(), O_RDONLY);
|
||||
fcntl(in_fd, F_SETFD, FD_CLOEXEC);
|
||||
if (in_fd != -1)
|
||||
curr_fileno = fileno;
|
||||
|
||||
|
Reference in New Issue
Block a user