core-admin/core
Marek Marczykowski-Górecki 0695e7ba78
utils/QubesWatch: register libvirt event loop only when really launched
Registering event implementation in libvirt and then not calling it is
harmful, because libvirt expects it working. Known drawbacks:
- keep-alives are advertised as supported but not really sent (cause
  dropping connections)
- connections are not closed (sockets remains open, effectively leaking
  file descriptors)

So call libvirt.virEventRegisterDefaultImpl only when it will be really
used (libvirt.virEventRunDefaultImpl called), which means calling it in
QubesWatch. Registering events implementation have effect only on new
libvirt connections, so start a new one for QubesWatch.

Fixes QubesOS/qubes-issues#1380
2015-11-07 03:51:51 +01:00
..
storage core: use vm.absolute_path to parse paths in qubes.xml 2015-09-04 01:58:53 +02:00
tests qubesutils.py: get_disk_usage 2014-04-24 21:50:12 +02:00
__init__.py Move all files one level up 2013-03-16 19:56:51 +01:00
.gitignore Move all files one level up 2013-03-16 19:56:51 +01:00
backup.py backup: fix R2B3 and older backup restore (#1124) 2015-09-06 00:06:09 +02:00
guihelpers.py Fixed PyQt4 import in guihelpers 2014-11-19 12:50:31 +01:00
Makefile makefile: Improve readability of settings.py install command 2014-11-19 12:50:26 +01:00
modules add convenient symlinks simulating target python files layout 2014-03-10 01:05:01 +01:00
notify.py core: fix imports 2014-11-19 12:50:32 +01:00
qubes.py utils/QubesWatch: register libvirt event loop only when really launched 2015-11-07 03:51:51 +01:00
qubesutils.py utils/QubesWatch: register libvirt event loop only when really launched 2015-11-07 03:51:51 +01:00
settings-wni-Windows_NT.py settings-wni: get installation directory from windows registry 2014-11-19 12:50:31 +01:00
settings-xen-Linux.py core/xen: setup xen-specific defaults in separate settings file 2014-11-19 12:50:26 +01:00