backup: cleanup retrieve_proc on failure
This commit is contained in:
parent
d906fbc4bb
commit
16ff6d0552
@ -1520,6 +1520,9 @@ class BackupRestore(object):
|
|||||||
raise QubesException(
|
raise QubesException(
|
||||||
"Premature end of archive, the last file was %s" % filename)
|
"Premature end of archive, the last file was %s" % filename)
|
||||||
except:
|
except:
|
||||||
|
with contextlib.suppress(ProcessLookupError):
|
||||||
|
retrieve_proc.terminate()
|
||||||
|
retrieve_proc.wait()
|
||||||
to_extract.put(QUEUE_ERROR)
|
to_extract.put(QUEUE_ERROR)
|
||||||
extract_proc.join()
|
extract_proc.join()
|
||||||
raise
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user