From 5d9c36d016bb00a85b55557add72e32a4767858f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 23 Jan 2021 09:53:26 +0100 Subject: [PATCH] Run: Pledge "thread" This is needed for the thumbnail generation thread used by FilePicker. Fixes #5015. --- Userland/Applications/Run/main.cpp | 4 ++-- 1 file 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; }