changeset 2644:56e98084e040

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.
author Brendan Cully <brendan@kublai.com>
date Thu, 20 Jul 2006 21:58:25 -0700
parents 3b53fa20dda8
children 8796d9991100 e57df017640d
files mercurial/hgweb/server.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/server.py
+++ b/mercurial/hgweb/server.py
@@ -198,6 +198,7 @@ def create_server(ui, repo):
             self.webdirmaker = hgwebdir
             self.repoviewmaker = hgweb
             self.reqmaker = wsgiapplication(self.make_handler)
+            self.daemon_threads = True
 
         def make_handler(self):
             if self.webdir_conf: