Skip to content

Commit

Permalink
fix: ignore error code 130
Browse files Browse the repository at this point in the history
this restores the behaviour of ignoring rc=130 which signifies
SIGTERM.
  • Loading branch information
akdev1l committed Aug 19, 2022
1 parent 1b4d28c commit 1e9f356
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ func runCommandWithFallbacks(container string, command []string, emitEscapeSeque
} else {
return nil
}
case 130:
return nil
default:
return &exitError{exitCode, nil}
}
Expand Down Expand Up @@ -477,10 +479,10 @@ func constructExecArgs(container string,

execArgs = append(execArgs, []string{
container,
"capsh", "--caps=", "--", "-c", "exec \"$@\"", "/bin/sh",
"capsh", "--caps=", "--", "-c",
}...)

execArgs = append(execArgs, command...)
execArgs = append(execArgs, fmt.Sprintf("exec %s", strings.Join(command, " ")))

return execArgs
}
Expand Down

0 comments on commit 1e9f356

Please sign in to comment.