|
|
9ae3a8 |
From d24a791d6a9b4c316e666c95d676ceaf2f52198a Mon Sep 17 00:00:00 2001
|
|
|
9ae3a8 |
From: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Date: Mon, 14 Oct 2013 13:35:11 +0200
|
|
|
9ae3a8 |
Subject: [PATCH 04/18] qemu-socket: catch monitor_get_fd failures
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
RH-Author: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Message-id: <1381757723-23134-4-git-send-email-kraxel@redhat.com>
|
|
|
9ae3a8 |
Patchwork-id: 54862
|
|
|
9ae3a8 |
O-Subject: [RHEL-7 qemu-kvm PATCH 03/15] qemu-socket: catch monitor_get_fd failures
|
|
|
9ae3a8 |
Bugzilla: 922010
|
|
|
9ae3a8 |
RH-Acked-by: Hans de Goede <hdegoede@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
RH-Acked-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
|
9ae3a8 |
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
|
|
|
9ae3a8 |
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
|
|
|
9ae3a8 |
(cherry picked from commit d1ec72a44e0a167f9e8254d6d1098d27f104571f)
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
util/qemu-sockets.c | 2 +-
|
|
|
9ae3a8 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
9ae3a8 |
---
|
|
|
9ae3a8 |
util/qemu-sockets.c | 2 +-
|
|
|
9ae3a8 |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
diff --git a/util/qemu-sockets.c b/util/qemu-sockets.c
|
|
|
9ae3a8 |
index 35023a8..126cbb6 100644
|
|
|
9ae3a8 |
--- a/util/qemu-sockets.c
|
|
|
9ae3a8 |
+++ b/util/qemu-sockets.c
|
|
|
9ae3a8 |
@@ -903,7 +903,7 @@ int socket_connect(SocketAddress *addr, Error **errp,
|
|
|
9ae3a8 |
|
|
|
9ae3a8 |
case SOCKET_ADDRESS_KIND_FD:
|
|
|
9ae3a8 |
fd = monitor_get_fd(cur_mon, addr->fd->str, errp);
|
|
|
9ae3a8 |
- if (callback) {
|
|
|
9ae3a8 |
+ if (fd >= 0 && callback) {
|
|
|
9ae3a8 |
qemu_set_nonblock(fd);
|
|
|
9ae3a8 |
callback(fd, opaque);
|
|
|
9ae3a8 |
}
|
|
|
9ae3a8 |
--
|
|
|
9ae3a8 |
1.7.1
|
|
|
9ae3a8 |
|