yeahuh / rpms / qemu-kvm

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