1 From 46fb81c69e8acdb70907409f98dd01e387408414 Mon Sep 17 00:00:00 2001
2 From: Stone Tickle <lattis@mochiro.moe>
3 Date: Fri, 5 Jun 2020 12:51:25 +0900
4 Subject: [PATCH] set O_NONBLOCK on repeat timerfd
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/src/wl_init.c b/src/wl_init.c
11 index 49e7cc52..43569bef 100644
14 @@ -1166,7 +1166,7 @@ int _glfwPlatformInit(void)
16 _glfw.wl.timerfd = -1;
17 if (_glfw.wl.seatVersion >= 4)
18 - _glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC);
19 + _glfw.wl.timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK);
21 if (_glfw.wl.pointer && _glfw.wl.shm)