hyperhq / runv

Hypervisor-based Runtime for OCI
Apache License 2.0
828 stars 129 forks source link

tty message may be lost #386

Closed gao-feng closed 7 years ago

gao-feng commented 7 years ago

The readTtyMessage is running in goroutine, it may be scheduled after vm is destroyed, this will cause tty hang because the tty-closed-message is not received by runv/hyperd.

gnawux commented 7 years ago

now the attach goroutine will wait for the eof of output streams