Parcourir la source

Don't try to restart anything if we're shutting down.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@480 e5f2f494-b856-4b98-b285-d166d9295462
Shane Kerr il y a 15 ans
Parent
commit
dca5b510c4
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      src/bin/bind10/bind10.py

+ 4 - 0
src/bin/bind10/bind10.py

@@ -260,6 +260,10 @@ class BoB:
     def restart_processes(self):
         """Restart any dead processes."""
         # XXX: this needs a back-off algorithm
+        # if we're shutting down, then don't restart
+        if not self.runnable:
+            return
+        # otherwise look through each dead process and try to restart
         still_dead = {}
         for proc_info in self.dead_processes.values():
             if self.verbose: