summaryrefslogtreecommitdiff
path: root/libpod/pod_internal.go
diff options
context:
space:
mode:
authorjgallucci32 <jgallucci32@users.noreply.github.com>2020-06-11 22:03:02 -0700
committerjgallucci32 <john.gallucci.iv@gmail.com>2020-06-12 10:14:35 -0700
commit9ac115e691d45ec565d0152c630e97c8081e1a71 (patch)
treec15124d779ffbe988df0364f31d7a32855c68333 /libpod/pod_internal.go
parent033743cbee180d9a4149f574375cc1201e573d06 (diff)
downloadpodman-9ac115e691d45ec565d0152c630e97c8081e1a71.tar.gz
podman-9ac115e691d45ec565d0152c630e97c8081e1a71.tar.bz2
podman-9ac115e691d45ec565d0152c630e97c8081e1a71.zip
Fix -f logs to stop when a container exits
Fixes an issue with the previous PR where a container would exit while following logs and the log tail continued to follow. This creates a subroutine which checks the state of the container and instructs the tailLog to stop when it reaches EOF. Tested the following conditions: * Tail and follow logs of running container * Tail and follow logs of stopped container * Tail and follow logs of running container which exits after some time Signed-off-by: jgallucci32 <john.gallucci.iv@gmail.com>
Diffstat (limited to 'libpod/pod_internal.go')
0 files changed, 0 insertions, 0 deletions