diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-05-17 10:42:26 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-05-17 13:26:16 +0000 |
commit | 3f0e2367c222fe362031f806f002fb8a62be6360 (patch) | |
tree | cc513735c9e97bba28cf3c992296c3a55ec776e5 /utils | |
parent | 624660c1b3869bdd6b3342f5924e813f32a81b4a (diff) | |
download | podman-3f0e2367c222fe362031f806f002fb8a62be6360.tar.gz podman-3f0e2367c222fe362031f806f002fb8a62be6360.tar.bz2 podman-3f0e2367c222fe362031f806f002fb8a62be6360.zip |
libpod: fix panic when using -t and the process fails to start
We were closing resize both on the receiver and the sender side.
This was racy as the sender might have written to a closed channel.
If the container could not be created, the attach exited
immediately causing the channel to be closed before the write from
resizeTty.
Change the logic to close only from the senderSide and add another
channel to notify the resizeTty goroutine when the container exited.
Closes: https://github.com/projectatomic/libpod/issues/785
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Closes: #787
Approved by: mheon
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions