(signo, stack_frame)
| 374 | |
| 375 | # Setup closure for graceful termination |
| 376 | def exit_gracefully(signo, stack_frame): |
| 377 | log("Terminated with signal", signo) |
| 378 | server.stop(0) |
| 379 | client.cancel() |
| 380 | sys.exit(0) |
| 381 | |
| 382 | # Add signal handlers |
| 383 | signal.signal(signal.SIGINT, exit_gracefully) |
nothing calls this directly
no test coverage detected
searching dependent graphs…