MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / handler

Function handler

imperative/python/megengine/data/signal_handling.py:21–25  ·  view source on GitHub ↗
(signum, frame)

Source from the content-addressed store, hash-verified

19 previous_handler = None
20
21 def handler(signum, frame):
22 _check_any_worker_failed()
23 if previous_handler is not None:
24 assert callable(previous_handler)
25 previous_handler(signum, frame)
26
27 signal.signal(signal.SIGCHLD, handler)
28 _sigchld_handler_set = True

Callers 3

_run_exit_handlersFunction · 0.85
ir_constant_tupleFunction · 0.85
canonicalize_argFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected