Commit f065ee0f authored by Michal Vaner's avatar Michal Vaner
Browse files

Return "wait for all threads" code

It was decided it can be used to inform user when the process really
finishes.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac335@3269 e5f2f494-b856-4b98-b285-d166d9295462
parent e2157e03
......@@ -461,6 +461,13 @@ class XfroutServer:
if self._unix_socket_server:
self._unix_socket_server.shutdown()
# Wait for all threads to terminate
main_thread = threading.currentThread()
for th in threading.enumerate():
if th is main_thread:
continue
th.join()
def command_handler(self, cmd, args):
if cmd == "shutdown":
self._log.log_message("info", "Received shutdown command.")
......
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