1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 13:15:07 +00:00

FileManager: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 22:13:38 +01:00
parent 75c5e9af56
commit b39e732eb3

View file

@ -31,6 +31,11 @@
int main(int argc, char** argv)
{
if (pledge("stdio thread unix shared_buffer cpath rpath wpath fattr proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}
struct sigaction act;
memset(&act, 0, sizeof(act));
act.sa_flags = SA_NOCLDWAIT;