changeset 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 204328d345f1
children c11e9a6777ae
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Jul 10 16:19:36 2005 -0800
+++ b/mercurial/commands.py	Sun Jul 10 17:11:27 2005 -0800
@@ -1202,8 +1202,8 @@
 
 def dispatch(args):
     signal.signal(signal.SIGTERM, catchterm)
-    if os.name != 'nt':
-        signal.signal(signal.SIGHUP, catchterm)
+    try: signal.signal(signal.SIGHUP, catchterm)
+    except: pass
 
     try:
         cmd, func, args, options, cmdoptions = parse(args)