Commit 84162785 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[trac565] Log shutdowns

parent 26aae7d6
......@@ -607,6 +607,8 @@ class BoB:
Stop the given process, friendly-like. The process is the name it has
(in logs, etc), the second is the address on msgq.
"""
if self.verbose:
sys.stdout.write("[bind10] Asking %s to terminate\n" % process)
# TODO: Some timeout to solve processes that don't want to die would
# help. We can even store it in the dict, it is used only as a set
self.expected_shutdowns[process] = 1
......@@ -614,6 +616,7 @@ class BoB:
self.cc_session.group_sendmsg({'command': ['shutdown']}, sendto,
sendto)
# Series of stop_process wrappers
def stop_resolver(self):
self.stop_process('b10-resolver', 'Resolver')
......
Markdown is supported
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