citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 017236eeaccc552ad1db6cc5856da3307a304036
parent b39d468b1e7519b47fc84185527e8a499948592a
Author: Kyle Milz <kyle@0x30.net>
Date:   Thu, 23 Jun 2016 18:41:27 -0600

src/inst: exit the same as the native compiler

Diffstat:
Msrc/inst_main.cc | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/inst_main.cc b/src/inst_main.cc @@ -251,4 +251,8 @@ main(int argc, char *argv[]) err(1, "waitpid"); restore_original_src(temp_file_map); + + // Use the same return code as the native compiler. + if (WIFEXITED(status)) + exit(WEXITSTATUS(status)); }