mercurial/hgweb/__init__.py
changeset 45818 b7b8a1538161
parent 43506 9f70512ae2cf
child 45820 ee826f43cf4f
--- 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):