WindowServer: Tighten pledged promises

This commit is contained in:
bugreport0 2021-12-12 19:44:48 +01:00 committed by Andreas Kling
parent 764f455d21
commit 99e0b69c0c
Notes: sideshowbarker 2024-07-17 21:45:24 +09:00

View file

@ -31,6 +31,7 @@ ErrorOr<int> serenity_main(Main::Arguments)
act.sa_flags = SA_NOCLDWAIT;
act.sa_handler = SIG_IGN;
TRY(Core::System::sigaction(SIGCHLD, &act, nullptr));
TRY(Core::System::pledge("stdio video thread sendfd recvfd accept rpath wpath cpath unix proc"));
auto wm_config = Core::ConfigFile::open("/etc/WindowServer.ini");
auto theme_name = wm_config->read_entry("Theme", "Name", "Default");