summaryrefslogtreecommitdiff
path: root/drivers/unix
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-09-26 09:44:46 +0200
committerGitHub <noreply@github.com>2019-09-26 09:44:46 +0200
commit8a89434acf2fcd55cee77eb3e8f9b8901dbdfa38 (patch)
treef86bc39ba231e880751b10f99fec7b1a011a4d8f /drivers/unix
parentc2a550565dc5c8b6e420c41150787c202e93a39b (diff)
parentb4c927b514bcc550fb6f8f186219bb181aeeae33 (diff)
Merge pull request #32033 from NNesh/fix/blocking-execude-code
Added returning an exit code by the blocking OS::execute method
Diffstat (limited to 'drivers/unix')
-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;
}