diff options
Diffstat (limited to 'cmd/podman/start.go')
-rw-r--r-- | cmd/podman/start.go | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cmd/podman/start.go b/cmd/podman/start.go index 14b03ac7c..597ed29ae 100644 --- a/cmd/podman/start.go +++ b/cmd/podman/start.go @@ -110,21 +110,10 @@ func startCmd(c *cli.Context) error { inputStream = nil } - attachChan, err := startAttachCtr(ctr, os.Stdout, os.Stderr, inputStream, c.String("detach-keys")) - if err != nil { + if err := startAttachCtr(ctr, os.Stdout, os.Stderr, inputStream, c.String("detach-keys"), c.Bool("sig-proxy")); err != nil { return errors.Wrapf(err, "unable to start container %s", ctr.ID()) } - if c.Bool("sig-proxy") { - ProxySignals(ctr) - } - - // Wait for attach to complete - err = <-attachChan - if err != nil { - return errors.Wrapf(err, "error attaching to container %s", ctr.ID()) - } - if ecode, err := ctr.ExitCode(); err != nil { logrus.Errorf("unable to get exit code of container %s: %q", ctr.ID(), err) } else { |