MCPcopy Create free account
hub / github.com/FreeformRobotics/OTS / handler

Function handler

lib/utils/data/dataloader.py:177–182  ·  view source on GitHub ↗
(signum, frame)

Source from the content-addressed store, hash-verified

175 previous_handler = None
176
177 def handler(signum, frame):
178 # This following call uses `waitid` with WNOHANG from C side. Therefore,
179 # Python can still get and update the process status successfully.
180 _error_if_any_worker_fails()
181 if previous_handler is not None:
182 previous_handler(signum, frame)
183
184 signal.signal(signal.SIGCHLD, handler)
185 _SIGCHLD_handler_set = True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected