aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sctrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sctrace.c b/sctrace.c
index 8a9972b..55ce808 100644
--- a/sctrace.c
+++ b/sctrace.c
@@ -286,7 +286,7 @@ main(int argc, char **argv)
if (WIFSIGNALED(exit_code)) {
exit_code = WTERMSIG(exit_code);
raise(exit_code);
- exit_code += 128;
+ return exit_code + 128;
}
- return exit_code;
+ return WEXITSTATUS(exit_code);
}