From bc5b8223b70990b906b1fa91cb6fd9e8e3c41663 Mon Sep 17 00:00:00 2001 From: Simon Danner Date: Sat, 21 Nov 2020 18:21:55 +0100 Subject: SoundPlayer: Add pledge for thread so file chooser doesn't crash - Without thread pledge, SoundPlayer crashes when generating thumbnails - Fixes #4121 --- Applications/SoundPlayer/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Applications') 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; } -- cgit v1.2.3