Skip to content

Commit ee3811d

Browse files
committed
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.
1 parent ab6f694 commit ee3811d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Applications/TextEditor/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@
3030

3131
int main(int argc, char** argv)
3232
{
33-
if (pledge("stdio rpath accept cpath wpath shared_buffer unix fattr", nullptr) < 0) {
33+
if (pledge("stdio thread rpath accept cpath wpath shared_buffer unix fattr", nullptr) < 0) {
3434
perror("pledge");
3535
return 1;
3636
}
3737

3838
GUI::Application app(argc, argv);
3939

40-
if (pledge("stdio rpath accept cpath wpath shared_buffer", nullptr) < 0) {
40+
if (pledge("stdio thread rpath accept cpath wpath shared_buffer", nullptr) < 0) {
4141
perror("pledge");
4242
return 1;
4343
}

0 commit comments

Comments
 (0)