aboutsummaryrefslogtreecommitdiff
path: root/qemu-char.c
diff options
context:
space:
mode:
authorDon Slutz <dslutz@verizon.com>2014-12-22 10:04:00 -0500
committerMichael Tokarev <mjt@tls.msk.ru>2015-01-15 10:44:13 +0300
commitfac6688a18574b6f2caa8c699a936e729ed53ece (patch)
treecfc53dd3c94e3d7b2587ab72eb6c382e10551760 /qemu-char.c
parentb4952c3677170139541bc6bc14e9c2cfdc056181 (diff)
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>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-char.c b/qemu-char.c
index 5430b87048..98d434237f 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();