(sig='SIGUSR1')
| 488 | |
| 489 | |
| 490 | def install_cry_handler(sig='SIGUSR1'): |
| 491 | # PyPy does not have sys._current_frames |
| 492 | if is_pypy: # pragma: no cover |
| 493 | return |
| 494 | |
| 495 | def cry_handler(*args): |
| 496 | """Signal handler logging the stack-trace of all active threads.""" |
| 497 | with in_sighandler(): |
| 498 | safe_say(cry()) |
| 499 | platforms.signals[sig] = cry_handler |
| 500 | |
| 501 | |
| 502 | def install_rdb_handler(envvar='CELERY_RDBSIG', |
no outgoing calls
no test coverage detected