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

Class sigaction

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

Source from the content-addressed store, hash-verified

172static inline void set_signal_handler(
173 int signal, void (*handler)(int, siginfo_t*, void*),
174 struct sigaction* old_sa_ptr) {
175 struct sigaction sa {};
176 sa.sa_sigaction = handler;
177 sa.sa_flags = SA_RESTART | SA_SIGINFO | SA_NOCLDSTOP | SA_NODEFER;

Callers 2

set_signal_handlerFunction · 0.70
handler_SIGTERMFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected