PaintBrush: Pledge "thread" so that GUI::FilePicker works

This commit is contained in:
Andreas Kling 2020-02-28 19:48:29 +01:00
parent 5af95139fa
commit 46256da7b0

View file

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