diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-05-09 19:02:46 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-10 12:36:05 +0200 |
commit | 3be9af769599eec55290c131d1ec1378fc94e736 (patch) | |
tree | 6fca6f8262924fcae3af788d2328e455f0762490 /Userland/Applications | |
parent | 455afd32f20b4904d975c1e1220171e5c2c5e224 (diff) | |
download | serenity-3be9af769599eec55290c131d1ec1378fc94e736.zip |
Userland: Reduce pledges requested by AnalogClock
After startup AnalogClock only needs the normal GUI event loop pledges.
Diffstat (limited to 'Userland/Applications')
-rw-r--r-- | Userland/Applications/AnalogClock/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Userland/Applications/AnalogClock/main.cpp b/Userland/Applications/AnalogClock/main.cpp index fe54d596d1..afe277b9f6 100644 --- a/Userland/Applications/AnalogClock/main.cpp +++ b/Userland/Applications/AnalogClock/main.cpp @@ -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; } |