1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Return error and not panic when cannot exec in dockerinit

Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
This commit is contained in:
Michael Crosby 2014-01-16 17:55:03 -08:00
parent 59fe36623b
commit 11ef2f0db4

View file

@ -209,7 +209,7 @@ func executeProgram(args *DockerInitArgs) error {
} }
if err := syscall.Exec(path, args.args, os.Environ()); err != nil { if err := syscall.Exec(path, args.args, os.Environ()); err != nil {
panic(err) return fmt.Errorf("dockerinit unable to execute %s - %s", path, err)
} }
// Will never reach here // Will never reach here