MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / sigaction

Class sigaction

oneflow/api/python/utils/dataloader.cpp:59–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57// http://man7.org/linux/man-pages/man2/signal.2.html
58static inline void setSignalHandler(int signal, void (*handler)(int, siginfo_t*, void*),
59 struct sigaction* old_sa_ptr) {
60 struct sigaction sa {};
61 sa.sa_sigaction = handler;
62 sa.sa_flags = SA_RESTART | SA_SIGINFO | SA_NOCLDSTOP | SA_NODEFER;

Callers 2

setSignalHandlerFunction · 0.70
handler_SIGTERMFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected