changeset 668:d93f0b127b6a

Dont trap SIGHUP on the other OS # HG changeset patch # User Edouard Gomez <ed.gomez@free.fr> # Node ID 34a547cb33fe515ef4cdc8ccd173546671253ae9 # Parent 8c89408a7154d2da94766e957a088407fd0fef93 Dont trap SIGHUP on the other OS HG doesn't work anymore on the other OS since signals are trapped. This is due to the fact that as explained in Python docs not all signals are defined for all platforms, so python was complaning about missing signal.SIGHUP.
author Edouard Gomez <ed.gomez@free.fr>
date Sun, 10 Jul 2005 16:02:39 -0800
parents 31a9aa890016
children 8aa2a282eda4
files mercurial/commands.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Jul 10 16:01:11 2005 -0800
+++ b/mercurial/commands.py	Sun Jul 10 16:02:39 2005 -0800
@@ -1199,7 +1199,8 @@
 
 def dispatch(args):
     signal.signal(signal.SIGTERM, catchterm)
-    signal.signal(signal.SIGHUP, catchterm)
+    if os.name != 'nt':
+        signal.signal(signal.SIGHUP, catchterm)
 
     try:
         cmd, func, args, options, cmdoptions = parse(args)