Alternate fix for SIGHUP on the other OS
authorMatt Mackall <mpm@selenic.com>
Sun, 10 Jul 2005 17:11:27 -0800
changeset 678 0cfc5966b2c2
parent 677 204328d345f1
child 679 c11e9a6777ae
Alternate fix for SIGHUP on the other OS Suggested by K Thananchayan
mercurial/commands.py
--- 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)