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
()
| 71 | |
| 72 | |
| 73 | def 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 | |
| 84 | def enable_sigusr2_handler(): |
no test coverage detected