Fix SIGINT with salt-call

Fix a typo that wrongly registered a SIGINT handler when one was already
set.  This caused ctrl-C in a pdb session to exit the program, rather
than interrupt it.

Sponsored by: Axcient
This commit is contained in:
Alan Somers 2021-04-05 08:18:39 -06:00 committed by Gareth J. Greenaway
parent 6ad09fa91a
commit 26fcda5074
2 changed files with 2 additions and 1 deletions

1
changelog/59966.fixed Normal file
View file

@ -0,0 +1 @@
Fixed interrupting salt-call in a pdb session.

View file

@ -85,7 +85,7 @@ def _install_signal_handlers(client):
if signal.getsignal(signal.SIGTERM) is signal.SIG_DFL:
# No custom signal handling was added, install our own
signal.signal(signal.SIGINT, functools.partial(_handle_signals, client))
signal.signal(signal.SIGTERM, functools.partial(_handle_signals, client))
def salt_master():