[svn] commit: r480 - /branches/parkinglot/src/bin/bind10/bind10.py

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Jan 19 12:59:50 UTC 2010


Author: shane
Date: Tue Jan 19 12:59:50 2010
New Revision: 480

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


Modified:
    branches/parkinglot/src/bin/bind10/bind10.py

Modified: branches/parkinglot/src/bin/bind10/bind10.py
==============================================================================
--- branches/parkinglot/src/bin/bind10/bind10.py (original)
+++ branches/parkinglot/src/bin/bind10/bind10.py Tue Jan 19 12:59:50 2010
@@ -260,6 +260,10 @@
     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:




More information about the bind10-changes mailing list