Do not hang on full PTY

Signed-off-by: Don Slutz <dslutz@verizon.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
Don Slutz 2014-12-22 10:04:00 -05:00 committed by Michael Tokarev
parent b4952c3677
commit fac6688a18

View File

@ -1402,6 +1402,7 @@ static CharDriverState *qemu_chr_open_pty(const char *id,
} }
close(slave_fd); close(slave_fd);
qemu_set_nonblock(master_fd);
chr = qemu_chr_alloc(); chr = qemu_chr_alloc();