mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-24 00:24:38 +00:00
LibGUI: Open the GUI event stream with O_CLOEXEC.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user