summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-07-11 09:49:30 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2018-07-13 16:41:11 +0200
commit62e48e5b71abe3002361bbf018961f8031fba03e (patch)
treec7befcc9ef6a7c00cc9ee36f171c62ce231f1ea8 /cmd
parent0066374fc3f69bbfd9ed08986115049d9a39b1f8 (diff)
downloadpodman-62e48e5b71abe3002361bbf018961f8031fba03e.tar.gz
podman-62e48e5b71abe3002361bbf018961f8031fba03e.tar.bz2
podman-62e48e5b71abe3002361bbf018961f8031fba03e.zip
rootless: correctly propagate the exit status from the container
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index fefd8fdad..4d841e0f2 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -27,13 +27,13 @@ func main() {
debug := false
cpuProfile := false
- became, err := rootless.BecomeRootInUserNS()
+ became, ret, err := rootless.BecomeRootInUserNS()
if err != nil {
logrus.Errorf(err.Error())
os.Exit(1)
}
if became {
- os.Exit(0)
+ os.Exit(ret)
}
if reexec.Init() {