mercurial/commands.py
changeset 4672 272c0a09b203
parent 4659 7a7d4937272b
child 4673 d8442fc0da8d
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2401,6 +2401,7 @@ def serve(ui, repo, **opts):
 
     class service:
         def init(self):
+            util.set_signal_handler()
             try:
                 self.httpd = hgweb.server.create_server(parentui, repo)
             except socket.error, inst: