mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
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:
parent
09b095e62a
commit
bc5b8223b7
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue