MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / setup_handler

Function setup_handler

contrib/ckpttimer/ckpttimer.cpp:91–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91static void
92setup_handler()
93{
94 struct sigaction sa;
95
96 /* Set up a signal handler for timeouts */
97 sa.sa_flags = SA_SIGINFO;
98 sa.sa_sigaction = timeout_handler;
99 sigemptyset(&sa.sa_mask);
100 if (sigaction(g_sig_num, &sa, NULL) == -1) {
101 handleError("sigaction");
102 }
103}
104
105static timer_t
106make_timer()

Callers 1

make_timerFunction · 0.85

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected