mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 13:15:07 +00:00
FileManager: Use pledge()
This commit is contained in:
parent
75c5e9af56
commit
b39e732eb3
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue