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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user