Run: Pledge "thread"

This is needed for the thumbnail generation thread used by FilePicker.

Fixes #5015.
This commit is contained in:
Andreas Kling 2021-01-23 09:53:26 +01:00
parent 54f421e170
commit 5d9c36d016

View file

@ -35,14 +35,14 @@
int main(int argc, char** argv)
{
if (pledge("stdio recvfd sendfd accept cpath rpath unix fattr proc exec", nullptr) < 0) {
if (pledge("stdio recvfd sendfd thread accept cpath rpath unix fattr proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}
auto app = GUI::Application::construct(argc, argv);
if (pledge("stdio recvfd sendfd accept rpath unix proc exec", nullptr) < 0) {
if (pledge("stdio recvfd sendfd thread accept rpath unix proc exec", nullptr) < 0) {
perror("pledge");
return 1;
}