mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
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:
parent
6ad09fa91a
commit
26fcda5074
2 changed files with 2 additions and 1 deletions
1
changelog/59966.fixed
Normal file
1
changelog/59966.fixed
Normal file
|
@ -0,0 +1 @@
|
|||
Fixed interrupting salt-call in a pdb session.
|
|
@ -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():
|
||||
|
|
Loading…
Add table
Reference in a new issue