commit | 62c339c5272ce8fbe8ca52695cee8ff40da7872e | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Thu Jul 24 16:08:04 2014 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Jul 25 14:36:07 2014 +0200 |
tree | 9dfd84d9511a075a65e2969e286d0bfd7b9e70e4 | |
parent | f368c33d5ab09dd5656924185cd975b11838cd25 [diff] |
qemu-char: ignore flow control if a PTY's slave is not connected After commit f702e62 (serial: change retry logic to avoid concurrency, 2014-07-11), guest boot hangs if the backend is an unconnected PTY. The reason is that PTYs do not support G_IO_HUP, and serial_xmit is never called. To fix this, simply invoke serial_xmit immediately (via g_idle_source_new) when this happens. Tested-by: Pavel Hrdina <phrdina@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>