ソースを参照

LibGUI: Open the GUI event stream with O_CLOEXEC.

Andreas Kling 6 年 前
コミット
6d9959e367
1 ファイル変更1 行追加1 行削除
  1. 1 1
      LibGUI/GEventLoop.cpp

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