Browse Source

Fix oslo.service ProcessLauncher fails to call stop

Change-Id: Ie8fd5f1da991f9b7edf43dbe15ad088599fef053
Closes-Bug: #1773070
jun923.gu 10 months ago
parent
commit
612c6507dc
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      oslo_service/service.py

+ 2
- 0
oslo_service/service.py View File

@@ -520,8 +520,10 @@ class ProcessLauncher(object):
520 520
             status = exc.code
521 521
             signo = exc.signo
522 522
         except SystemExit as exc:
523
+            launcher.stop()
523 524
             status = exc.code
524 525
         except BaseException:
526
+            launcher.stop()
525 527
             LOG.exception('Unhandled exception')
526 528
             status = 2
527 529
 

Loading…
Cancel
Save