Fix closing stdin before everything has been written to pipe

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi 2016-03-23 10:26:05 -07:00
parent 0c1445dedf
commit fa0efa2906
2 changed files with 21 additions and 5 deletions

View file

@ -89,7 +89,9 @@ func start() error {
switch msg {
case 0:
// close stdin
p.shimIO.Stdin.Close()
if p.stdinCloser != nil {
p.stdinCloser.Close()
}
case 1:
if p.console == nil {
continue