From 6d9959e3671358d7953b2f3a7037565fbbc5c3b0 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 21 Jan 2019 01:33:16 +0100 Subject: [PATCH] LibGUI: Open the GUI event stream with O_CLOEXEC. --- LibGUI/GEventLoop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LibGUI/GEventLoop.cpp b/LibGUI/GEventLoop.cpp index d9b1abc6d6..45bfee7822 100644 --- a/LibGUI/GEventLoop.cpp +++ b/LibGUI/GEventLoop.cpp @@ -36,7 +36,7 @@ GEventLoop& GEventLoop::main() int GEventLoop::exec() { - m_event_fd = open("/dev/gui_events", O_RDONLY | O_NONBLOCK); + m_event_fd = open("/dev/gui_events", O_RDONLY | O_NONBLOCK | O_CLOEXEC); if (m_event_fd < 0) { perror("GEventLoop::exec(): open"); exit(1);