backups: make cleanup code more defensive

If we are killing remaining processes in cause of exception, ignore
failure here (OSError is raised in case of non existing process).
This commit is contained in:
Marek Marczykowski-Górecki 2014-01-15 03:57:59 +01:00
parent 7b1e9f3bfb
commit 50c00e555e

View File

@ -749,10 +749,13 @@ class ExtractWorker(Process):
self.tar2_process]:
if process:
# FIXME: kill()?
process.terminate()
try:
process.terminate()
except OSError:
pass
process.wait()
self.error_callback(str(e))
raise
raise e
def __run__(self):
if BACKUP_DEBUG: