##// END OF EJS Templates
catch SIGBREAK on windows.
Vadim Gelfer -
r2092:1d3c6e63 default
parent child Browse files
Show More
@@ -3249,11 +3249,9 b' def parse(ui, args):'
3249 return (cmd, cmd and i[0] or None, args, options, cmdoptions)
3249 return (cmd, cmd and i[0] or None, args, options, cmdoptions)
3250
3250
3251 def dispatch(args):
3251 def dispatch(args):
3252 signal.signal(signal.SIGTERM, catchterm)
3252 for name in 'SIGTERM', 'SIGHUP', 'SIGBREAK':
3253 try:
3253 num = getattr(signal, name, None)
3254 signal.signal(signal.SIGHUP, catchterm)
3254 if num: signal.signal(num, catchterm)
3255 except AttributeError:
3256 pass
3257
3255
3258 try:
3256 try:
3259 u = ui.ui()
3257 u = ui.ui()
General Comments 0
You need to be logged in to leave comments. Login now