MCPcopy
hub / github.com/tinode/chat / exit_gracefully

Function exit_gracefully

chatbot/python/chatbot.py:376–380  ·  view source on GitHub ↗
(signo, stack_frame)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

logFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…