From 245a7e2d58d4057ff6c18759f2d22f4f4e4cec7a Mon Sep 17 00:00:00 2001 From: Stone Tickle Date: Fri, 5 Jun 2020 12:51:25 +0900 Subject: [PATCH] set O_NONBLOCK on repeat timerfd --- src/wl_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wl_init.c b/src/wl_init.c index 558ff8a80..0abaa61a4 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -1154,8 +1154,9 @@ int _glfwPlatformInit(void) _glfwInitTimerPOSIX(); _glfw.wl.timerfd = -1; - if (_glfw.wl.seatVersion >= 4) - _glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC); + if (_glfw.wl.seatVersion >= 4) { + _glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK); + } if (!_glfw.wl.wmBase) {