diff options
author | Marco Cutecchia <marco.cutecchia@outlook.it> | 2021-01-16 22:39:42 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-16 22:54:21 +0100 |
commit | 14f075b26daba50c3fd3a0a60b7772cb087bfa40 (patch) | |
tree | 6cff559226153d71dc2c54bc9801452881552375 /Userland | |
parent | 0571125dfe5d2df896c37eb74c039b1dd8dbc987 (diff) | |
download | serenity-14f075b26daba50c3fd3a0a60b7772cb087bfa40.zip |
SoundPlayer: Added 'shared_buffer' to pledge
This fixes a crash that occured when opening a file due to not pledging 'shared_buffer'
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/SoundPlayer/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/SoundPlayer/main.cpp b/Userland/Applications/SoundPlayer/main.cpp index 45752c089b..3958365abe 100644 --- a/Userland/Applications/SoundPlayer/main.cpp +++ b/Userland/Applications/SoundPlayer/main.cpp @@ -37,14 +37,14 @@ int main(int argc, char** argv) { - if (pledge("stdio recvfd sendfd accept rpath thread unix cpath fattr", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread unix cpath fattr shared_buffer", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio recvfd sendfd accept rpath thread unix", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread unix shared_buffer", nullptr) < 0) { perror("pledge"); return 1; } @@ -52,7 +52,7 @@ int main(int argc, char** argv) auto audio_client = Audio::ClientConnection::construct(); audio_client->handshake(); - if (pledge("stdio recvfd sendfd accept rpath thread", nullptr) < 0) { + if (pledge("stdio recvfd sendfd accept rpath thread shared_buffer", nullptr) < 0) { perror("pledge"); return 1; } |