mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
libtriple: try to make all filedescriptors O_CLOEXEC
This commit is contained in:
@@ -127,6 +127,7 @@ void init_td_api()
|
||||
gfxfd = open("/dev/stb/tdgfx", O_RDWR);
|
||||
if (gfxfd < 0)
|
||||
perror("open /dev/stb/tdgfx");
|
||||
fcntl(gfxfd, F_SETFD, FD_CLOEXEC);
|
||||
}
|
||||
initialized = true;
|
||||
lt_info("%s end\n", __FUNCTION__);
|
||||
|
Reference in New Issue
Block a user