mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
WidgetGallery: Pledge thread
This is needed to use the file picker dialog.
This commit is contained in:
parent
57fc6eb9be
commit
22611ca136
Notes:
sideshowbarker
2024-07-18 08:51:10 +09:00
Author: https://github.com/metmo
Commit: 22611ca136
Pull-request: https://github.com/SerenityOS/serenity/pull/8838
1 changed files with 2 additions and 2 deletions
|
@ -15,14 +15,14 @@
|
||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
if (pledge("stdio recvfd sendfd rpath unix", nullptr) < 0) {
|
if (pledge("stdio recvfd sendfd rpath unix thread", 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 rpath", nullptr) < 0) {
|
if (pledge("stdio recvfd sendfd rpath thread", nullptr) < 0) {
|
||||||
perror("pledge");
|
perror("pledge");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue