mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-15 20:33:10 +00:00
ImageDecoder: Add the 'thread' pledge for background actions
This commit is contained in:
parent
ab602cfc2c
commit
6f90495512
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue