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:
orang tua
7b1e9f3bfb
melakukan
50c00e555e
@ -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:
|
||||
|
Memuat…
Reference in New Issue
Block a user