MCPcopy Index your code
hub / github.com/rawpython/remi / sig_manager

Method sig_manager

remi/server.py:896–899  ·  view source on GitHub ↗
(sig, callstack)

Source from the content-addressed store, hash-verified

894 # noinspection PyBroadException
895 try:
896 def sig_manager(sig, callstack):
897 self.stop()
898 self._log.info('*** signal %d received.' % sig)
899 return signal.SIG_IGN
900 prev_handler = signal.signal(signal.SIGINT, sig_manager)
901 except Exception:
902 # signal.pause() is missing for Windows; wait 1ms and loop instead

Callers

nothing calls this directly

Calls 1

stopMethod · 0.95

Tested by

no test coverage detected