]> git.proxmox.com Git - mirror_qemu.git/blobdiff - backends/dbus-vmstate.c
tpm: fix crash when FD >= 1024 and unnecessary errors due to EINTR
[mirror_qemu.git] / backends / dbus-vmstate.c
index 9cfd758c42f37a4341806833cf99dacae59d8f33..57369ec0f22b250454a779c55d2722ac405b2f44 100644 (file)
@@ -114,14 +114,19 @@ dbus_get_proxies(DBusVMState *self, GError **err)
                     "org.qemu.VMState1",
                     NULL, err);
         if (!proxy) {
-            return NULL;
+            if (err != NULL && *err != NULL) {
+                warn_report("%s: Failed to create proxy: %s",
+                            __func__, (*err)->message);
+                g_clear_error(err);
+            }
+            continue;
         }
 
         result = g_dbus_proxy_get_cached_property(proxy, "Id");
         if (!result) {
-            g_set_error_literal(err, G_IO_ERROR, G_IO_ERROR_FAILED,
-                                "VMState Id property is missing.");
-            return NULL;
+            warn_report("%s: VMState Id property is missing.", __func__);
+            g_clear_object(&proxy);
+            continue;
         }
 
         id = g_variant_dup_string(result, &size);