mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:17:35 +00:00
AudioServer: Use pledge()
This commit is contained in:
parent
5f5791cac8
commit
a84aac86b1
1 changed files with 8 additions and 0 deletions
|
@ -4,6 +4,14 @@
|
||||||
|
|
||||||
int main(int, char**)
|
int main(int, char**)
|
||||||
{
|
{
|
||||||
|
if (pledge("stdio thread shared_buffer rpath wpath cpath unix fattr", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
ASEventLoop event_loop;
|
ASEventLoop event_loop;
|
||||||
|
if (pledge("stdio thread shared_buffer rpath wpath unix", nullptr) < 0) {
|
||||||
|
perror("pledge");
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
return event_loop.exec();
|
return event_loop.exec();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue