changeset 641:27f53edc02b9

Catch SIGHUP This should reduce the chance that a repo we're connected to via ssh gets interrupted without doing rollback.
author Matt Mackall <mpm@selenic.com>
date Wed, 06 Jul 2005 22:27:07 -0800
parents b48b91d3fb4a
children 5d6177b72fcc
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)