core-admin/core
Marek Marczykowski-Górecki bdae560770 backup: fix deadlock on error while receiving backup from a VM
When qfile-dom0-unpacker detects an error, it sends error report to
stdout and terminate (so stdout is closed). That close should be
transferred to the VM process (as EOF on its stdin), which will signal
it to stop sending the data and handle error report.
Also qrexec-client holds the connection until both stdin and
stdout are closed.
So when that EOF is missing, tar2qfile will not detect error report and
still tries to send the data and qrexec-client will hold the
connection while receiving process is long dead.

To prevent that deadlock from happening, close FD in python code, so
qfile-dom0-unpacker will be the last owner of write end of the pipe.
When it closes its stdout, qrexec-client will receive EOF at its stdin.
2015-02-18 21:41:22 +01:00
..
storage core: disks handling cleanup, fix them for TemplateHVM 2015-02-09 06:02:20 +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: fix deadlock on error while receiving backup from a VM 2015-02-18 21:41:22 +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 core: disks handling cleanup, fix them for TemplateHVM 2015-02-09 06:02:20 +01:00
qubesutils.py raise correct exception 2015-02-07 01:14:22 +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