aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.go b/main.go
index 59e55928..ea68dff6 100644
--- a/main.go
+++ b/main.go
@@ -328,14 +328,14 @@ func runApp(config *fst.Config) {
} else {
logWaitError(err)
}
+
+ if rs.ExitCode == 0 {
+ rs.ExitCode = 126
+ }
}
if rs.WaitErr != nil {
fmsg.Println("inner wait failed:", rs.WaitErr)
}
- if rs.ExitCode < 0 {
- fmsg.VPrintf("got negative exit %v", rs.ExitCode)
- fmsg.Exit(1)
- }
fmsg.Exit(rs.ExitCode)
panic("unreachable")
}