Fix oslo.service ProcessLauncher fails to call stop

Change-Id: Ie8fd5f1da991f9b7edf43dbe15ad088599fef053
Closes-Bug: #1773070
(cherry picked from commit 612c6507dc)
This commit is contained in:
jun923.gu 2018-06-19 10:25:07 +08:00 committed by Hervé Beraud
parent 471b12b9cf
commit 7db3f68721
1 changed files with 2 additions and 0 deletions

View File

@ -457,8 +457,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(_LE('Unhandled exception'))
status = 2