From fac6688a18574b6f2caa8c699a936e729ed53ece Mon Sep 17 00:00:00 2001 From: Don Slutz Date: Mon, 22 Dec 2014 10:04:00 -0500 Subject: [PATCH] Do not hang on full PTY Signed-off-by: Don Slutz Reviewed-by: Paolo Bonzini Signed-off-by: Michael Tokarev --- qemu-char.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu-char.c b/qemu-char.c index 5430b87..98d4342 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -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(); -- 2.7.4