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

Function set_worker_signal_handlers

imperative/python/src/utils.cpp:207–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207static void set_worker_signal_handlers() {
208 set_signal_handler(SIGSEGV, &handler_SIGSEGV, nullptr);
209 set_signal_handler(SIGTERM, &handler_SIGTERM, nullptr);
210 set_signal_handler(SIGFPE, &handler_SIGFPE, nullptr);
211}
212
213static std::unordered_map<int64_t, std::set<pid_t>> worker_pids = {};
214

Callers 1

init_utilsFunction · 0.85

Calls 1

set_signal_handlerFunction · 0.85

Tested by

no test coverage detected