summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-23 09:53:26 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-23 09:54:46 +0100
commit5d9c36d016bb00a85b55557add72e32a4767858f (patch)
tree43ece3f62c3b15205a14c1c37becf676bf45b25a
parent54f421e1702046e024359c949c56b76f45d8d213 (diff)
downloadserenity-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.cpp4
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;
}