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);