mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
SoundPlayer: Use pledge()
This commit is contained in:
parent
b79711786c
commit
17135c9704
1 changed files with 10 additions and 0 deletions
|
@ -12,8 +12,18 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio unix shared_buffer cpath rpath fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
GApplication app(argc, argv);
|
||||
|
||||
if (pledge("stdio unix shared_buffer rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto audio_client = AClientConnection::construct();
|
||||
audio_client->handshake();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue