mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
fix platform::new_engine_instance
This commit is contained in:
parent
4c18163f8a
commit
052ae41271
1 changed files with 2 additions and 0 deletions
|
|
@ -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_
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue