MCPcopy Create free account
hub / github.com/0x676e67/wreq-python / signal_handler

Function signal_handler

python/examples/blocking/ws.py:50–52  ·  view source on GitHub ↗
(sig, frame)

Source from the content-addressed store, hash-verified

48 receive_task.join()
49
50 def signal_handler(sig, frame):
51 close_ws()
52 exit(0)
53
54 signal.signal(signal.SIGINT, signal_handler)
55 signal.signal(signal.SIGTERM, signal_handler)

Callers

nothing calls this directly

Calls 1

close_wsFunction · 0.70

Tested by

no test coverage detected