diff options
author | Ruslan Mullayanov <mullruslan@yandex.ru> | 2019-09-07 22:39:24 +0500 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-09-26 08:12:07 +0200 |
commit | b4c927b514bcc550fb6f8f186219bb181aeeae33 (patch) | |
tree | 1c49466702d98f1444e95ce9011e01225d54d885 /drivers | |
parent | 084481b79da1515e2acd9be68e13aec67e35e80b (diff) |
Added an exit code to the blocking mode of OS::execute
Updated documentation accordingly.
Fixes #31881.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/unix/os_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/unix/os_unix.cpp b/drivers/unix/os_unix.cpp index bc57c0b8df..80d7a2ccaa 100644 --- a/drivers/unix/os_unix.cpp +++ b/drivers/unix/os_unix.cpp @@ -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; } |