mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
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:
parent
7d47f35832
commit
5195263115
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user