Commit dca5b510 authored by Shane Kerr's avatar Shane Kerr
Browse files

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

git-svn-id: svn:// e5f2f494-b856-4b98-b285-d166d9295462
parent 016ba9a3
......@@ -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:
# otherwise look through each dead process and try to restart
still_dead = {}
for proc_info in self.dead_processes.values():
if self.verbose:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment