mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
LibGUI: Open the GUI event stream with O_CLOEXEC.
This commit is contained in:
parent
d66b0f7dd8
commit
6d9959e367
Notes:
sideshowbarker
2024-07-19 15:59:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/6d9959e3671
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue