Added an exit code to the blocking mode of OS::execute
Updated documentation accordingly. Fixes #31881.
This commit is contained in:
committed by
Rémi Verschelde
parent
084481b79d
commit
b4c927b514
@ -314,7 +314,7 @@ Error OS_Unix::execute(const String &p_path, const List<String> &p_arguments, bo
|
||||
}
|
||||
int rv = pclose(f);
|
||||
if (r_exitcode)
|
||||
*r_exitcode = rv;
|
||||
*r_exitcode = WEXITSTATUS(rv);
|
||||
|
||||
return OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user