MCPcopy Index your code
hub / github.com/saltstack/salt / enable_sigusr1_handler

Function enable_sigusr1_handler

salt/utils/debug.py:73–81  ·  view source on GitHub ↗

Pretty print a stack trace to the console or a debug log under /tmp when any of the salt daemons such as salt-master are sent a SIGUSR1

()

Source from the content-addressed store, hash-verified

71
72
73def enable_sigusr1_handler():
74 """
75 Pretty print a stack trace to the console or a debug log under /tmp
76 when any of the salt daemons such as salt-master are sent a SIGUSR1
77 """
78 enable_sig_handler("SIGUSR1", _handle_sigusr1)
79 # Also canonical BSD-way of printing progress is SIGINFO
80 # which on BSD-derivatives can be sent via Ctrl+T
81 enable_sig_handler("SIGINFO", _handle_sigusr1)
82
83
84def enable_sigusr2_handler():

Callers 3

startMethod · 0.90
tune_inMethod · 0.90
tune_inMethod · 0.90

Calls 1

enable_sig_handlerFunction · 0.85

Tested by

no test coverage detected