Merge pull request #6990 from s0undt3ch/hotfix/debug-sigusr-signal

Simpler and working non windows system check.
This commit is contained in:
David Boucha 2013-09-02 18:34:05 -07:00
commit 92f787a929

View File

@ -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)