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
orang tua 7b1e9f3bfb
melakukan 50c00e555e

Melihat 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: