libtriple: try to make all filedescriptors O_CLOEXEC

This commit is contained in:
Stefan Seyfried
2011-12-04 15:54:49 +01:00
parent 63af4043a7
commit 4d9be7852d
5 changed files with 11 additions and 5 deletions

View File

@@ -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__);