mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #6990 from s0undt3ch/hotfix/debug-sigusr-signal
Simpler and working non windows system check.
This commit is contained in:
commit
92f787a929
@ -47,5 +47,5 @@ def enable_sigusr1_handler():
|
||||
'''
|
||||
# Skip setting up this signal on Windows
|
||||
# SIGUSR1 doesn't exist on Windows and causes the minion to crash
|
||||
if 'os' in os.environ and not os.environ['os'].startswith('Windows'):
|
||||
if not salt.utils.is_windows():
|
||||
signal.signal(signal.SIGUSR1, _handle_sigusr1)
|
||||
|
Loading…
Reference in New Issue
Block a user