Fix oslo.service ProcessLauncher fails to call stop

Change-Id: Ie8fd5f1da991f9b7edf43dbe15ad088599fef053
Closes-Bug: #1773070
This commit is contained in:
jun923.gu 2018-06-19 10:25:07 +08:00
parent 1f13ffaf74
commit 612c6507dc
1 changed files with 2 additions and 0 deletions

View File

@ -520,8 +520,10 @@ class ProcessLauncher(object):
status = exc.code
signo = exc.signo
except SystemExit as exc:
launcher.stop()
status = exc.code
except BaseException:
launcher.stop()
LOG.exception('Unhandled exception')
status = 2