Linux: Set O_CLOEXEC on evdev fd

Closes #2446
master
Victor Chernyakin ago%!(EXTRA string=1 year) committed by Camilla Löwy
parent 9953f7ead1
commit edd38207a6
  1. 2
      src/linux_joystick.c

@ -135,7 +135,7 @@ static GLFWbool openJoystickDevice(const char* path)
}
_GLFWjoystickLinux linjs = {0};
linjs.fd = open(path, O_RDONLY | O_NONBLOCK);
linjs.fd = open(path, O_RDONLY | O_NONBLOCK | O_CLOEXEC);
if (linjs.fd == -1)
return GLFW_FALSE;

Loading…
Cancel
Save