thebeanogamer / rpms / qemu-kvm

Forked from rpms/qemu-kvm 5 months ago
Clone
9ae3a8
From 40f55392d0bbe867547e5705c2be21d65924b024 Mon Sep 17 00:00:00 2001
9ae3a8
From: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
Date: Fri, 9 Jun 2017 11:43:57 +0200
9ae3a8
Subject: [PATCH 2/6] Do not hang on full PTY
9ae3a8
9ae3a8
RH-Author: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
Message-id: <20170609114359.13036-2-pbonzini@redhat.com>
9ae3a8
Patchwork-id: 75565
9ae3a8
O-Subject: [RHEL7.4 qemu-kvm PATCH v2 1/3] Do not hang on full PTY
9ae3a8
Bugzilla: 1452067
9ae3a8
RH-Acked-by: David Hildenbrand <david@redhat.com>
9ae3a8
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
9ae3a8
From: Don Slutz <dslutz@verizon.com>
9ae3a8
9ae3a8
Signed-off-by: Don Slutz <dslutz@verizon.com>
9ae3a8
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
9ae3a8
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
9ae3a8
(cherry picked from commit fac6688a18574b6f2caa8c699a936e729ed53ece)
9ae3a8
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
---
9ae3a8
 qemu-char.c | 1 +
9ae3a8
 1 file changed, 1 insertion(+)
9ae3a8
9ae3a8
diff --git a/qemu-char.c b/qemu-char.c
9ae3a8
index 5edca0a..08b2301 100644
9ae3a8
--- a/qemu-char.c
9ae3a8
+++ b/qemu-char.c
9ae3a8
@@ -1182,6 +1182,7 @@ static CharDriverState *qemu_chr_open_pty(const char *id,
9ae3a8
     }
9ae3a8
 
9ae3a8
     close(slave_fd);
9ae3a8
+    qemu_set_nonblock(master_fd);
9ae3a8
 
9ae3a8
     chr = g_malloc0(sizeof(CharDriverState));
9ae3a8
 
9ae3a8
-- 
9ae3a8
1.8.3.1
9ae3a8