# HG changeset patch # User Matt Mackall # Date 1120717627 28800 # Node ID 27f53edc02b9d2e8a349e17b6ba9e26f44139811 # Parent b48b91d3fb4ad6ba1e48ae9c7ae6d59972718b5a Catch SIGHUP This should reduce the chance that a repo we're connected to via ssh gets interrupted without doing rollback. diff -r b48b91d3fb4a -r 27f53edc02b9 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)