1
0
mirror of https://src.fedoraproject.org/rpms/virt-manager.git synced 2025-07-15 16:53:32 +00:00
Files
virt-manager/virt-manager-0.8.2-libvirtd-restart-crash.patch
Cole Robinson 31875e5b42 Fix some german translation issues (bz 571200, bz 571231) Allow --sync CLI
option Fix using a manual 'default' pool (bz 557020) Fix crash if
    libvirtd is restarted (bz 555063) Don't force grab focus when app is
    run (bz 548430)
2010-03-22 01:46:44 +00:00

34 lines
1.3 KiB
Diff

# HG changeset patch
# User Cole Robinson <crobinso@redhat.com>
# Date 1264526673 18000
# Node ID 3fc51aee7be3c5d539ad9ed1f90afdcd43de8896
# Parent 0ade95843eba86c51247645be001cc336fd99966
engine: Make sure a libvirtd restart doesn't lock the app
We were trying to close the connection without thread locking (and closing
can emit a signal which updates the UI).
diff -r 0ade95843eba -r 3fc51aee7be3 src/virtManager/engine.py
--- a/src/virtManager/engine.py Mon Jan 25 10:04:31 2010 -0500
+++ b/src/virtManager/engine.py Tue Jan 26 12:24:33 2010 -0500
@@ -211,8 +211,9 @@
def _tick(self):
for uri in self.connections.keys():
+ conn = self.connections[uri]["connection"]
try:
- self.connections[uri]["connection"].tick()
+ conn.tick()
except KeyboardInterrupt:
raise
except libvirt.libvirtError, e:
@@ -220,7 +221,7 @@
logging.exception("Could not refresh connection %s." % uri)
logging.debug("Closing connection since libvirtd "
"appears to have stopped.")
- self.connections[uri]["connection"].close()
+ gobject.idle_add(conn.close)
else:
raise
return 1