Browse 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 15 years ago
parent
commit
dca5b510c4
1 changed files with 4 additions and 0 deletions
  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):
     def restart_processes(self):
         """Restart any dead processes."""
         """Restart any dead processes."""
         # XXX: this needs a back-off algorithm
         # 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 = {}
         still_dead = {}
         for proc_info in self.dead_processes.values():
         for proc_info in self.dead_processes.values():
             if self.verbose:
             if self.verbose: