Do not hang on full PTY

Signed-off-by: Don Slutz <[email protected]>
Reviewed-by: Paolo Bonzini <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
This commit is contained in:
Don Slutz authored and Michael Tokarev committed 2015-01-15 10:44:13 +03:00
1 parent b4952c3677
commit fac6688a18
1 file changed
+1
+1
View File
@@ -1402,6 +1402,7 @@ static CharDriverState *qemu_chr_open_pty(const char *id,
}
close(slave_fd);
qemu_set_nonblock(master_fd);
chr = qemu_chr_alloc();