mirror of
https://github.com/containers/podman.git
synced 2025-10-18 11:42:55 +08:00
Always connect to the stdout and stderr of stream
If the stdout and stderr are not attach, podman will at least get a messsage that the container has completed and finish. This fixes the `podman run -a stdin fedora true` Hang issue. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1239 Approved by: mheon
This commit is contained in:

committed by
Atomic Bot

parent
4c63fcc59a
commit
a44641d46b
@ -96,11 +96,9 @@ func (c *Container) attachContainerSocket(resize <-chan remotecommand.TerminalSi
|
|||||||
}
|
}
|
||||||
|
|
||||||
receiveStdoutError := make(chan error)
|
receiveStdoutError := make(chan error)
|
||||||
if streams.AttachOutput || streams.AttachError {
|
go func() {
|
||||||
go func() {
|
receiveStdoutError <- redirectResponseToOutputStreams(streams.OutputStream, streams.ErrorStream, streams.AttachOutput, streams.AttachError, conn)
|
||||||
receiveStdoutError <- redirectResponseToOutputStreams(streams.OutputStream, streams.ErrorStream, streams.AttachOutput, streams.AttachError, conn)
|
}()
|
||||||
}()
|
|
||||||
}
|
|
||||||
|
|
||||||
stdinDone := make(chan error)
|
stdinDone := make(chan error)
|
||||||
go func() {
|
go func() {
|
||||||
|
Reference in New Issue
Block a user