[svn] commit: r3269 - /branches/trac335/src/bin/xfrout/xfrout.py.in

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Oct 19 08:35:28 UTC 2010


Author: vorner
Date: Tue Oct 19 08:35:27 2010
New Revision: 3269

Log:
Return "wait for all threads" code

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

Modified:
    branches/trac335/src/bin/xfrout/xfrout.py.in

Modified: branches/trac335/src/bin/xfrout/xfrout.py.in
==============================================================================
--- branches/trac335/src/bin/xfrout/xfrout.py.in (original)
+++ branches/trac335/src/bin/xfrout/xfrout.py.in Tue Oct 19 08:35:27 2010
@@ -461,6 +461,13 @@
         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.")




More information about the bind10-changes mailing list