summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorSimon Danner <danner.simon@gmail.com>2020-11-21 18:21:55 +0100
committerAndreas Kling <kling@serenityos.org>2020-11-22 10:53:58 +0100
commitbc5b8223b70990b906b1fa91cb6fd9e8e3c41663 (patch)
treef7ea09fb083c58457e7e181845338f5804f1bf9b /Applications
parent09b095e62ae11c9ffeedb6924da21f25560453ce (diff)
downloadserenity-bc5b8223b70990b906b1fa91cb6fd9e8e3c41663.zip
SoundPlayer: Add pledge for thread so file chooser doesn't crash
- Without thread pledge, SoundPlayer crashes when generating thumbnails - Fixes #4121
Diffstat (limited to 'Applications')
-rw-r--r--Applications/SoundPlayer/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Applications/SoundPlayer/main.cpp b/Applications/SoundPlayer/main.cpp
index 8948f8ef48..1bb3b98e51 100644
--- a/Applications/SoundPlayer/main.cpp
+++ b/Applications/SoundPlayer/main.cpp
@@ -38,14 +38,14 @@
int main(int argc, char** argv)
{
- if (pledge("stdio shared_buffer accept rpath unix cpath fattr", nullptr) < 0) {
+ if (pledge("stdio shared_buffer accept rpath thread unix cpath fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
- if (pledge("stdio shared_buffer accept rpath unix", nullptr) < 0) {
+ if (pledge("stdio shared_buffer accept rpath thread unix", nullptr) < 0) {
perror("pledge");
return 1;
}
@@ -53,7 +53,7 @@ int main(int argc, char** argv)
auto audio_client = Audio::ClientConnection::construct();
audio_client->handshake();
- if (pledge("stdio shared_buffer accept rpath", nullptr) < 0) {
+ if (pledge("stdio shared_buffer accept rpath thread", nullptr) < 0) {
perror("pledge");
return 1;
}