Make sure SDL file descriptors don't leak into child processes

This commit is contained in:
Sam Lantinga committed 2021-09-08 14:47:40 -07:00
1 parent 3ed8ba7d33
commit bf97c5a22f
15 files changed
+24 -24

No files matched your search

+2 -2
View File
@@ -361,7 +361,7 @@ CPU_haveARMSIMD(void)
int arm_simd = 0;
int fd;
fd = open("/proc/self/auxv", O_RDONLY);
fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC);
if (fd >= 0)
{
Elf32_auxv_t aux;
@@ -417,7 +417,7 @@ readProcAuxvForNeon(void)
int neon = 0;
int fd;
fd = open("/proc/self/auxv", O_RDONLY);
fd = open("/proc/self/auxv", O_RDONLY | O_CLOEXEC);
if (fd >= 0)
{
Elf32_auxv_t aux;