mirror of
https://github.com/glfw/glfw.git
synced 2024-11-23 02:25:10 +00:00
Wayland: Open the timerfd with cloexec
This commit is contained in:
parent
84d10b32c3
commit
608f055c72
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user