aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-02 00:03:41 +0200
committerMattias Andrée <maandree@kth.se>2020-06-02 00:03:41 +0200
commit75ae20bd805f6a54321de14ff9746ebffe44a5ad (patch)
tree976a2a280a9c958b261646f75d2229c95211ccbf
parentAlways flush trace output (diff)
downloadsctrace-75ae20bd805f6a54321de14ff9746ebffe44a5ad.tar.gz
sctrace-75ae20bd805f6a54321de14ff9746ebffe44a5ad.tar.bz2
sctrace-75ae20bd805f6a54321de14ff9746ebffe44a5ad.tar.xz
Fix exit status regression ... now I can go back to sleep again1.1
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-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);
}