1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

SoundPlayer: Use pledge()

This commit is contained in:
Andreas Kling 2020-01-12 02:28:26 +01:00
parent b79711786c
commit 17135c9704

View file

@ -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();