Mercurial > hg
comparison mercurial/commands.py @ 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 | c9e159bb9a3d |
comparison
equal
deleted
inserted
replaced
640:b48b91d3fb4a | 641:27f53edc02b9 |
---|---|
1197 | 1197 |
1198 return (cmd, i[0], args, options, cmdoptions) | 1198 return (cmd, i[0], args, options, cmdoptions) |
1199 | 1199 |
1200 def dispatch(args): | 1200 def dispatch(args): |
1201 signal.signal(signal.SIGTERM, catchterm) | 1201 signal.signal(signal.SIGTERM, catchterm) |
1202 signal.signal(signal.SIGHUP, catchterm) | |
1202 | 1203 |
1203 try: | 1204 try: |
1204 cmd, func, args, options, cmdoptions = parse(args) | 1205 cmd, func, args, options, cmdoptions = parse(args) |
1205 except ParseError, inst: | 1206 except ParseError, inst: |
1206 u = ui.ui() | 1207 u = ui.ui() |