mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:38:10 +00:00
LibGUI: Open the GUI event stream with O_CLOEXEC.
This commit is contained in:
parent
d66b0f7dd8
commit
6d9959e367
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
Add a link
Reference in a new issue