mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
Run: Pledge "thread"
This is needed for the thumbnail generation thread used by FilePicker. Fixes #5015.
This commit is contained in:
parent
54f421e170
commit
5d9c36d016
1 changed files with 2 additions and 2 deletions
|
@ -35,14 +35,14 @@
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
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");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto app = GUI::Application::construct(argc, argv);
|
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");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue