Dont trap SIGHUP on the other OS

# HG changeset patch
# User Edouard Gomez <ed.gomez@free.fr>
# 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.
This commit is contained in:
Edouard Gomez 2005-07-10 16:02:39 -08:00
parent 7d47f35832
commit 5195263115

View File

@ -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)