mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 18:55:07 +00:00
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:
parent
ab6f694905
commit
ee3811dee8
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue