From 519526311504de2c8766fd9dc75b4092250a369b Mon Sep 17 00:00:00 2001 From: Edouard Gomez Date: Sun, 10 Jul 2005 16:02:39 -0800 Subject: [PATCH] Dont trap SIGHUP on the other OS # HG changeset patch # User Edouard Gomez # Node ID 34a547cb33fe515ef4cdc8ccd173546671253ae9 # Parent 5155a0b6300820be38eb7e04d26525be39307df2 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. --- mercurial/commands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mercurial/commands.py b/mercurial/commands.py index ee9e6fc32c..5c91db226d 100644 --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -1199,7 +1199,8 @@ def parse(args): 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)