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; _glfw.wl.timerfd = -1;
if (_glfw.wl.seatVersion >= 4) 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) if (_glfw.wl.pointer && _glfw.wl.shm)
{ {