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:
Andreas Kling 2020-01-21 15:40:48 +01:00
commit a2ed805d23
Notes: sideshowbarker 2024-07-19 09:54:57 +09:00

View file

@ -35,9 +35,10 @@ int main(int, char**)
return 1;
}
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");
return 1;
}
return event_loop.exec();
}