mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:37:35 +00:00
Demos+Games: Pledge "sendfd" in demos and games
This commit is contained in:
parent
a525d0271c
commit
b2086c8d77
9 changed files with 11 additions and 11 deletions
|
@ -34,14 +34,14 @@
|
|||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
if (pledge("stdio rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) {
|
||||
if (pledge("stdio sendfd rpath wpath cpath sendfd shared_buffer accept unix fattr", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
if (pledge("stdio rpath shared_buffer", nullptr) < 0) {
|
||||
if (pledge("stdio sendfd rpath shared_buffer", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue