From c5a8c9fc12555b0229c1fd8f1c75d8b838656d69 Mon Sep 17 00:00:00 2001 From: "Justin Terry (VM)" Date: Mon, 14 Jan 2019 11:47:48 -0800 Subject: [PATCH] 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) --- runtime/v2/runhcs/io.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/v2/runhcs/io.go b/runtime/v2/runhcs/io.go index 274a08a90..a3a4f1458 100644 --- a/runtime/v2/runhcs/io.go +++ b/runtime/v2/runhcs/io.go @@ -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() } }