diff -r 58e7ee23ddbd -r b7b8a1538161 mercurial/hgweb/__init__.py --- a/mercurial/hgweb/__init__.py Mon Jun 22 22:47:43 2020 -0700 +++ b/mercurial/hgweb/__init__.py Tue Nov 03 20:18:26 2020 -0800 @@ -9,6 +9,7 @@ from __future__ import absolute_import import os +import sys from ..i18n import _ @@ -111,6 +112,7 @@ def run(self): self.httpd.serve_forever() + sys.exit(0) def createapp(baseui, repo, webconf):