From: Don Slutz Date: Mon, 22 Dec 2014 15:04:00 +0000 (-0500) Subject: Do not hang on full PTY X-Git-Tag: v2.3.0-rc0~102^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fac6688a18574b6f2caa8c699a936e729ed53ece;p=thirdparty%2Fqemu.git Do not hang on full PTY Signed-off-by: Don Slutz Reviewed-by: Paolo Bonzini Signed-off-by: Michael Tokarev --- diff --git a/qemu-char.c b/qemu-char.c index 5430b870488..98d434237f3 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();