summaryrefslogtreecommitdiff
path: root/cmd/podman/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/run.go')
-rw-r--r--cmd/podman/run.go13
1 files changed, 1 insertions, 12 deletions
diff --git a/cmd/podman/run.go b/cmd/podman/run.go
index b8d6e0968..cafb16d9d 100644
--- a/cmd/podman/run.go
+++ b/cmd/podman/run.go
@@ -179,8 +179,7 @@ func runCmd(c *cli.Context) error {
}
}
- attachChan, err := startAttachCtr(ctr, outputStream, errorStream, inputStream, c.String("detach-keys"))
- if err != nil {
+ if err := startAttachCtr(ctr, outputStream, errorStream, inputStream, c.String("detach-keys"), c.BoolT("sig-proxy")); err != nil {
// This means the command did not exist
exitCode = 127
if strings.Index(err.Error(), "permission denied") > -1 {
@@ -189,16 +188,6 @@ func runCmd(c *cli.Context) error {
return err
}
- if c.BoolT("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 {