(sig, _frame)
| 1768 | """Setup signal handlers for clean shutdown.""" |
| 1769 | |
| 1770 | def handler(sig, _frame): |
| 1771 | logger.debug(f"Received signal {sig}, shutting down") |
| 1772 | restore_terminal() |
| 1773 | sys.exit(0) |
| 1774 | |
| 1775 | signal.signal(signal.SIGINT, handler) |
| 1776 | signal.signal(signal.SIGTERM, handler) |
nothing calls this directly
no outgoing calls
no test coverage detected