mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 03:16:26 +00:00
Make sure SDL file descriptors don't leak into child processes
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user