Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 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 | 6513ba7d858a |
comparison
equal
deleted
inserted
replaced
667:31a9aa890016 | 668:d93f0b127b6a |
---|---|
1197 | 1197 |
1198 return (cmd, i[0], args, options, cmdoptions) | 1198 return (cmd, i[0], args, options, cmdoptions) |
1199 | 1199 |
1200 def dispatch(args): | 1200 def dispatch(args): |
1201 signal.signal(signal.SIGTERM, catchterm) | 1201 signal.signal(signal.SIGTERM, catchterm) |
1202 signal.signal(signal.SIGHUP, catchterm) | 1202 if os.name != 'nt': |
1203 signal.signal(signal.SIGHUP, catchterm) | |
1203 | 1204 |
1204 try: | 1205 try: |
1205 cmd, func, args, options, cmdoptions = parse(args) | 1206 cmd, func, args, options, cmdoptions = parse(args) |
1206 except ParseError, inst: | 1207 except ParseError, inst: |
1207 u = ui.ui() | 1208 u = ui.ui() |