fix platform::new_engine_instance

This commit is contained in:
MihailRis 2026-07-29 23:04:54 +03:00
parent 4c18163f8a
commit 052ae41271

View file

@ -362,11 +362,13 @@ void platform::new_engine_instance(
} }
argv[args.size() + 1] = nullptr; argv[args.size() + 1] = nullptr;
prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0);
execvp(executable.c_str(), const_cast<char**>(argv.data())); execvp(executable.c_str(), const_cast<char**>(argv.data()));
_exit(127); _exit(127);
} else { } else {
close(fd); close(fd);
return;
} }
} }
#endif // __APPLE_ #endif // __APPLE_