summaryrefslogtreecommitdiff
path: root/Applications/TextEditor
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-24 19:51:22 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-24 19:51:22 +0100
commitee3811dee81f72facccd080c1b8dad3721a1b398 (patch)
tree64b239a2aaa02456a8d477eebd95367c120d7297 /Applications/TextEditor
parentab6f694905c216fa6eda4c4a52872a3b5a0f653f (diff)
downloadserenity-ee3811dee81f72facccd080c1b8dad3721a1b398.zip
TextEditor: Pledge "thread" since it's needed by GUI::FilePicker
This is a little bit awkward since it's only used for generating thumbnails on a background thread and it's not like I care about thumbnails very much in a text editor, but for now let's just pledge "thread" so I can get on with the thing I wanted to get on with.
Diffstat (limited to 'Applications/TextEditor')
-rw-r--r--Applications/TextEditor/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/TextEditor/main.cpp b/Applications/TextEditor/main.cpp
index 4d33acfefe..73e9ebb9fd 100644
--- a/Applications/TextEditor/main.cpp
+++ b/Applications/TextEditor/main.cpp
@@ -30,14 +30,14 @@
int main(int argc, char** argv)
{
- if (pledge("stdio rpath accept cpath wpath shared_buffer unix fattr", nullptr) < 0) {
+ if (pledge("stdio thread rpath accept cpath wpath shared_buffer unix fattr", nullptr) < 0) {
perror("pledge");
return 1;
}
GUI::Application app(argc, argv);
- if (pledge("stdio rpath accept cpath wpath shared_buffer", nullptr) < 0) {
+ if (pledge("stdio thread rpath accept cpath wpath shared_buffer", nullptr) < 0) {
perror("pledge");
return 1;
}