From 608f055c72d996da6195023415c3421abd4416f7 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Sat, 24 Feb 2018 20:53:19 +0100 Subject: [PATCH] Wayland: Open the timerfd with cloexec --- src/wl_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wl_init.c b/src/wl_init.c index 70c6bdf8..0656fccd 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -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) {