# HG changeset patch # User Brendan Cully # Date 1153457905 25200 # Node ID 56e98084e040480feaf8d5a8c3e568025091d14f # Parent 3b53fa20dda8651241298958cdf2af509d050c57 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. diff --git a/mercurial/hgweb/server.py b/mercurial/hgweb/server.py --- 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: