Fix closing stdin before everything has been written to pipe
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
0c1445dedf
commit
fa0efa2906
2 changed files with 21 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue