Catch SIGHUP
authorMatt Mackall <mpm@selenic.com>
Wed, 06 Jul 2005 22:27:07 -0800
changeset 641 27f53edc02b9
parent 640 b48b91d3fb4a
child 642 5d6177b72fcc
Catch SIGHUP This should reduce the chance that a repo we're connected to via ssh gets interrupted without doing rollback.
mercurial/commands.py
--- a/mercurial/commands.py	Wed Jul 06 22:25:40 2005 -0800
+++ b/mercurial/commands.py	Wed Jul 06 22:27:07 2005 -0800
@@ -1199,6 +1199,7 @@
 
 def dispatch(args):
     signal.signal(signal.SIGTERM, catchterm)
+    signal.signal(signal.SIGHUP, catchterm)
 
     try:
         cmd, func, args, options, cmdoptions = parse(args)