From 65b20bd521302020ff229d455c60102e15a41b8a Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 25 Sep 2019 16:25:10 -0400 Subject: 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 --- cmd/podman/main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/podman') 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 -- cgit v1.2.3-54-g00ecf