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

AudioServer: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-11 21:27:17 +01:00
parent 5f5791cac8
commit a84aac86b1

View file

@ -4,6 +4,14 @@
int main(int, char**)
{
if (pledge("stdio thread shared_buffer rpath wpath cpath unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
ASEventLoop event_loop;
if (pledge("stdio thread shared_buffer rpath wpath unix", nullptr) < 0) {
perror("pledge");
return 1;
}
return event_loop.exec();
}