SoundPlayer: Add pledge for thread so file chooser doesn't crash

- Without thread pledge, SoundPlayer crashes when generating thumbnails
- Fixes #4121
This commit is contained in:
Simon Danner 2020-11-21 18:21:55 +01:00 committed by Andreas Kling
parent 09b095e62a
commit bc5b8223b7

View file

@ -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;
}