(sig='SIGUSR1')
| 544 | |
| 545 | |
| 546 | def install_cry_handler(sig='SIGUSR1'): |
| 547 | # PyPy does not have sys._current_frames |
| 548 | if is_pypy: # pragma: no cover |
| 549 | return |
| 550 | |
| 551 | def cry_handler(*args): |
| 552 | """Signal handler logging the stack-trace of all active threads.""" |
| 553 | with in_sighandler(): |
| 554 | safe_say(cry()) |
| 555 | platforms.signals[sig] = cry_handler |
| 556 | |
| 557 | |
| 558 | def install_rdb_handler(envvar='CELERY_RDBSIG', |
no outgoing calls
no test coverage detected