comparison mercurial/commands.py @ 678:0cfc5966b2c2

Alternate fix for SIGHUP on the other OS Suggested by K Thananchayan
author Matt Mackall <mpm@selenic.com>
date Sun, 10 Jul 2005 17:11:27 -0800
parents 49de76abc4da
children 44b30755d07c
comparison
equal deleted inserted replaced
677:204328d345f1 678:0cfc5966b2c2
1200 1200
1201 return (cmd, i[0], args, options, cmdoptions) 1201 return (cmd, i[0], args, options, cmdoptions)
1202 1202
1203 def dispatch(args): 1203 def dispatch(args):
1204 signal.signal(signal.SIGTERM, catchterm) 1204 signal.signal(signal.SIGTERM, catchterm)
1205 if os.name != 'nt': 1205 try: signal.signal(signal.SIGHUP, catchterm)
1206 signal.signal(signal.SIGHUP, catchterm) 1206 except: pass
1207 1207
1208 try: 1208 try:
1209 cmd, func, args, options, cmdoptions = parse(args) 1209 cmd, func, args, options, cmdoptions = parse(args)
1210 except ParseError, inst: 1210 except ParseError, inst:
1211 u = ui.ui() 1211 u = ui.ui()