Skip to content

Commit

Permalink
SoundPlayer: Use pledge()
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Jan 12, 2020
1 parent b797117 commit 17135c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Applications/SoundPlayer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 17135c9

Please sign in to comment.