1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:48:11 +00:00

Userland: Remove unecessary uses of __serenity__ macro

This commit is contained in:
Andrew Kaster 2022-10-09 15:38:06 -06:00 committed by Linus Groh
parent 828441852f
commit 539fb08551
10 changed files with 4 additions and 51 deletions

View file

@ -877,13 +877,11 @@ ErrorOr<RefPtr<Job>> Shell::run_command(const AST::Command& command)
void Shell::execute_process(Vector<char const*>&& argv)
{
#ifdef __serenity__
for (auto& promise : m_active_promises) {
pledge("stdio rpath exec", promise.data.exec_promises.characters());
MUST(Core::System::pledge("stdio rpath exec"sv, promise.data.exec_promises));
for (auto& item : promise.data.unveils)
unveil(item.path.characters(), item.access.characters());
MUST(Core::System::unveil(item.path, item.access));
}
#endif
int rc = execvp(argv[0], const_cast<char* const*>(argv.data()));
if (rc < 0) {