1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:17:35 +00:00

HackStudio: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 21:17:56 +01:00
parent c13328bd2b
commit 457c7d9efd

View file

@ -96,6 +96,11 @@ bool make_is_available();
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
if (pledge("stdio tty rpath cpath wpath shared_buffer proc unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GApplication app(argc, argv); GApplication app(argc, argv);
Function<void()> update_actions; Function<void()> update_actions;