diff options
| author | Mattias Andrée <maandree@kth.se> | 2020-06-02 00:03:41 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2020-06-02 00:03:41 +0200 |
| commit | 75ae20bd805f6a54321de14ff9746ebffe44a5ad (patch) | |
| tree | 976a2a280a9c958b261646f75d2229c95211ccbf | |
| parent | Always flush trace output (diff) | |
| download | sctrace-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>
| -rw-r--r-- | sctrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |
