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

This commit is contained in:
Andreas Kling 2020-02-28 19:48:29 +01:00
commit 46256da7b0
Notes: sideshowbarker 2024-07-19 08:59:12 +09:00

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