From 46256da7b0e70b3f287a7e449b53379b3134041d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 28 Feb 2020 19:48:29 +0100 Subject: [PATCH] PaintBrush: Pledge "thread" so that GUI::FilePicker works --- Applications/PaintBrush/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Applications/PaintBrush/main.cpp b/Applications/PaintBrush/main.cpp index bb6e42b876..aaf1573d84 100644 --- a/Applications/PaintBrush/main.cpp +++ b/Applications/PaintBrush/main.cpp @@ -41,14 +41,14 @@ int main(int argc, char** argv) { - if (pledge("stdio shared_buffer accept rpath unix wpath cpath fattr", nullptr) < 0) { + if (pledge("stdio thread shared_buffer accept rpath unix wpath cpath fattr", nullptr) < 0) { perror("pledge"); return 1; } GUI::Application app(argc, argv); - if (pledge("stdio shared_buffer accept rpath wpath cpath", nullptr) < 0) { + if (pledge("stdio thread shared_buffer accept rpath wpath cpath", nullptr) < 0) { perror("pledge"); return 1; }