Fix issue in runhcs shim CloseIO

The call was closing all upstream IO when a shim.CloseIO call was made rather
than just the Stdin as it is supposed to.

Signed-off-by: Justin Terry (VM) <juterry@microsoft.com>
This commit is contained in:
Justin Terry (VM) 2019-01-14 11:47:48 -08:00
parent 8706a355dd
commit c5a8c9fc12

View File

@ -145,7 +145,7 @@ func (pr *pipeRelay) wait() {
// closeIO closes stdin to unblock an waiters
func (pr *pipeRelay) closeIO() {
if pr.ps.stdin != nil {
pr.ps.Close()
pr.ps.stdin.Close()
pr.io.Stdin().Close()
}
}