diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-23 09:53:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-23 09:54:46 +0100 |
commit | 5d9c36d016bb00a85b55557add72e32a4767858f (patch) | |
tree | 43ece3f62c3b15205a14c1c37becf676bf45b25a | |
parent | 54f421e1702046e024359c949c56b76f45d8d213 (diff) | |
download | serenity-5d9c36d016bb00a85b55557add72e32a4767858f.zip |
Run: Pledge "thread"
This is needed for the thumbnail generation thread used by FilePicker.
Fixes #5015.
-rw-r--r-- | Userland/Applications/Run/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/Run/main.cpp b/Userland/Applications/Run/main.cpp index 9efea6415f..fe83a13b2c 100644 --- a/Userland/Applications/Run/main.cpp +++ b/Userland/Applications/Run/main.cpp @@ -35,14 +35,14 @@ int main(int argc, char** argv) { - if (pledge("stdio recvfd sendfd accept cpath rpath unix fattr proc exec", nullptr) < 0) { + if (pledge("stdio recvfd sendfd thread accept cpath rpath unix fattr proc exec", nullptr) < 0) { perror("pledge"); return 1; } auto app = GUI::Application::construct(argc, argv); - if (pledge("stdio recvfd sendfd accept rpath unix proc exec", nullptr) < 0) { + if (pledge("stdio recvfd sendfd thread accept rpath unix proc exec", nullptr) < 0) { perror("pledge"); return 1; } |