Make hgweb threads into daemon threads.
authorBrendan Cully <brendan@kublai.com>
Thu, 20 Jul 2006 21:58:25 -0700
changeset 2650 56e98084e040
parent 2649 3b53fa20dda8
child 2651 e57df017640d
child 2653 8796d9991100
Make hgweb threads into daemon threads. This fixes the problem that an interrupted hg serve will not terminate until the next request has been received.
mercurial/hgweb/server.py
--- a/mercurial/hgweb/server.py	Fri Jul 21 02:36:17 2006 +0200
+++ b/mercurial/hgweb/server.py	Thu Jul 20 21:58:25 2006 -0700
@@ -198,6 +198,7 @@
             self.webdirmaker = hgwebdir
             self.repoviewmaker = hgweb
             self.reqmaker = wsgiapplication(self.make_handler)
+            self.daemon_threads = True
 
         def make_handler(self):
             if self.webdir_conf: