core-admin/core
Marek Marczykowski-Górecki 0c476f014d
backup: avoid deadlock when VM process fails
If SendWorker queue is full, check if that thread is still alive.
Otherwise it would deadlock on putting an entry to that queue.
This also requires that SendWorker must ensure that the main thread
isn't currently waiting for queue space when it fails. We can do this by
simply removing an entry from a queue - so on the next iteration
SendWorker would be already dead and main thread would notice it.
Getting an entry from queue in such (error) situation is harmless,
because other checks will notice it's an error condition.

Fixes QubesOS/qubes-issues#1359
2015-11-25 01:35:04 +01:00
..
storage Rename storage dir to dir_path, type to driver 2015-11-21 14:46:23 +01: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: avoid deadlock when VM process fails 2015-11-25 01:35:04 +01: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-xen-Linux.py Rename storage dir to dir_path, type to driver 2015-11-21 14:46:23 +01:00