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.
This commit is contained in:
Andreas Kling 2020-02-24 19:51:22 +01:00
parent ab6f694905
commit ee3811dee8
Notes: sideshowbarker 2024-07-19 09:04:59 +09:00

View File

@ -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;
}