summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@redhat.com>2019-09-25 16:25:10 -0400
committerNalin Dahyabhai <nalin@redhat.com>2019-09-26 18:19:07 -0400
commit65b20bd521302020ff229d455c60102e15a41b8a (patch)
treec378d118a2661cb619715a425b8deec3e4f4c993 /cmd/podman
parent851e3775d5d2e605bcb612054a94ac6de005f834 (diff)
downloadpodman-65b20bd521302020ff229d455c60102e15a41b8a.tar.gz
podman-65b20bd521302020ff229d455c60102e15a41b8a.tar.bz2
podman-65b20bd521302020ff229d455c60102e15a41b8a.zip
Correct use of reexec.Init()
A true result from reexec.Init() isn't an error, but it indicates that main() should exit with a success exit status. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/main.go b/cmd/podman/main.go
index 992dbe1d5..4d8adc15f 100644
--- a/cmd/podman/main.go
+++ b/cmd/podman/main.go
@@ -149,6 +149,8 @@ func main() {
//cpuProfile := false
if reexec.Init() {
+ // We were invoked with a different argv[0] indicating that we
+ // had a specific job to do as a subprocess, and it's done.
return
}
// Hard code TMPDIR functions to use /var/tmp, if user did not override