2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:04:55 +00:00

Add closefrom call to RunProcess

This commit is contained in:
Jack Andersen
2019-02-26 19:13:19 -10:00
parent 6626557cc4
commit 1f04f7ae12
6 changed files with 9 additions and 10 deletions

View File

@@ -853,6 +853,7 @@ int RunProcess(const SystemChar* path, const SystemChar* const args[]) {
#else
pid_t pid = fork();
if (!pid) {
closefrom(3);
execvp(path, (char* const*)args);
exit(1);
}