1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

Userland: Reduce pledges requested by AnalogClock

After startup AnalogClock only needs the normal GUI event loop pledges.
This commit is contained in:
Brian Gianforcaro 2021-05-09 19:02:46 -07:00 committed by Andreas Kling
parent 455afd32f2
commit 3be9af7695

View file

@ -13,14 +13,9 @@
int main(int argc, char** argv)
{
if (pledge("stdio recvfd sendfd accept rpath unix cpath wpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio recvfd sendfd accept rpath cpath wpath", nullptr) < 0) {
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
perror("pledge");
return 1;
}