summaryrefslogtreecommitdiff
path: root/pkg/adapter/containers_remote.go
diff options
context:
space:
mode:
authorPeter Hunt <pehunt@redhat.com>2019-07-23 10:01:56 -0400
committerPeter Hunt <pehunt@redhat.com>2019-07-23 13:30:15 -0400
commit74ab273e919715823fe9bb70c030a65b021897d1 (patch)
tree484754ef5203bdffb8dda9f906a22af62de23fee /pkg/adapter/containers_remote.go
parenta4041dafae7cabdb1a9d57e1606fe9c03ac267a8 (diff)
downloadpodman-74ab273e919715823fe9bb70c030a65b021897d1.tar.gz
podman-74ab273e919715823fe9bb70c030a65b021897d1.tar.bz2
podman-74ab273e919715823fe9bb70c030a65b021897d1.zip
buffer errChan
Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'pkg/adapter/containers_remote.go')
-rw-r--r--pkg/adapter/containers_remote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/adapter/containers_remote.go b/pkg/adapter/containers_remote.go
index 3b1b80315..0373913d0 100644
--- a/pkg/adapter/containers_remote.go
+++ b/pkg/adapter/containers_remote.go
@@ -1068,7 +1068,7 @@ func (r *LocalRuntime) ExecContainer(ctx context.Context, cli *cliconfig.ExecVal
}
func configureVarlinkAttachStdio(reader *bufio.Reader, writer *bufio.Writer, stdin *os.File, stdout *os.File, oldTermState *term.State, resize chan remotecommand.TerminalSize, ecChan chan int) chan error {
- var errChan chan error
+ errChan := make(chan error, 1)
// These are the special writers that encode input from the client.
varlinkStdinWriter := virtwriter.NewVirtWriteCloser(writer, virtwriter.ToStdin)
varlinkResizeWriter := virtwriter.NewVirtWriteCloser(writer, virtwriter.TerminalResize)