ImageDecoder: Add the 'thread' pledge for background actions

This commit is contained in:
Timothy Flynn 2024-04-26 08:31:16 -04:00 committed by Tim Flynn
parent ab602cfc2c
commit 6f90495512

View file

@ -13,11 +13,11 @@
ErrorOr<int> serenity_main(Main::Arguments)
{
Core::EventLoop event_loop;
TRY(Core::System::pledge("stdio recvfd sendfd unix"));
TRY(Core::System::pledge("stdio recvfd sendfd thread unix"));
TRY(Core::System::unveil(nullptr, nullptr));
auto client = TRY(IPC::take_over_accepted_client_from_system_server<ImageDecoder::ConnectionFromClient>());
TRY(Core::System::pledge("stdio recvfd sendfd"));
TRY(Core::System::pledge("stdio recvfd sendfd thread"));
return event_loop.exec();
}