1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

Inspector: Update pledge() idiom

This commit is contained in:
bugreport0 2021-12-11 16:09:57 +01:00 committed by Andreas Kling
parent 1a2ff38609
commit 595ebe215b

View file

@ -146,10 +146,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->show();
remote_process.update();
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
perror("pledge");
return 1;
}
TRY(Core::System::pledge("stdio recvfd sendfd rpath"));
return app->exec();
}