summaryrefslogtreecommitdiff
path: root/Applications/PaintBrush
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-28 19:48:29 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-28 19:48:29 +0100
commit46256da7b0e70b3f287a7e449b53379b3134041d (patch)
tree34602803f546b7e4ea36f3f662358503d753049d /Applications/PaintBrush
parent5af95139fa0103dcbd489835f4aa15fd6e37852e (diff)
downloadserenity-46256da7b0e70b3f287a7e449b53379b3134041d.zip
PaintBrush: Pledge "thread" so that GUI::FilePicker works
Diffstat (limited to 'Applications/PaintBrush')
-rw-r--r--Applications/PaintBrush/main.cpp4
1 files 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;
}