1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-07 22:57:25 -04:00

Wayland: Open the timerfd with cloexec

This commit is contained in:
Emmanuel Gil Peyrot 2018-02-24 20:53:19 +01:00 committed by linkmauve
parent 84d10b32c3
commit 608f055c72

View File

@ -848,7 +848,7 @@ int _glfwPlatformInit(void)
_glfw.wl.timerfd = -1;
if (_glfw.wl.seatVersion >= 4)
_glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, 0);
_glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC);
if (_glfw.wl.pointer && _glfw.wl.shm)
{