summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorRuslan Mullayanov <mullruslan@yandex.ru>2019-09-07 22:39:24 +0500
committerRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-26 08:12:07 +0200
commitb4c927b514bcc550fb6f8f186219bb181aeeae33 (patch)
tree1c49466702d98f1444e95ce9011e01225d54d885 /drivers
parent084481b79da1515e2acd9be68e13aec67e35e80b (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.cpp2
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;
}