Merge pull request #2927 from jterry75/bug_io_relay_close

Fix issue in runhcs shim CloseIO
This commit is contained in:
Phil Estes 2019-01-15 09:59:09 -05:00 committed by GitHub
commit 33b56e253e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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