mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 01:35:08 +00:00
AudioServer: Drop "rpath" and "wpath" pledges
Once the event loop is constructed, we will have opened /dev/audio for output and no more filesystem lookups need to happen.
This commit is contained in:
parent
5b992b130a
commit
a2ed805d23
1 changed files with 2 additions and 1 deletions
|
@ -35,9 +35,10 @@ int main(int, char**)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
ASEventLoop event_loop;
|
ASEventLoop event_loop;
|
||||||
if (pledge("stdio thread shared_buffer accept rpath wpath", nullptr) < 0) {
|
if (pledge("stdio thread shared_buffer accept", nullptr) < 0) {
|
||||||
perror("pledge");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return event_loop.exec();
|
return event_loop.exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue