From 5b5d1b375c9e2e86c1a96ddeec7644516d3f8f02 Mon Sep 17 00:00:00 2001 From: Erik Johnson Date: Wed, 15 Mar 2017 09:30:21 -0500 Subject: [PATCH] Fix transposed lines in salt.utils.process Resolves #40011. --- salt/utils/process.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/utils/process.py b/salt/utils/process.py index 9e60d0bad6d9..bb30d062f7de 100644 --- a/salt/utils/process.py +++ b/salt/utils/process.py @@ -672,8 +672,8 @@ def default_signals(*signals): old_signals = {} for signum in signals: try: - signal.signal(signum, signal.SIG_DFL) old_signals[signum] = signal.getsignal(signum) + signal.signal(signum, signal.SIG_DFL) except ValueError as exc: # This happens when a netapi module attempts to run a function # using wheel_async, because the process trying to register signals