MCPcopy Create free account
hub / github.com/ElementsProject/lightning / crashlog_activate

Function crashlog_activate

common/daemon.c:55–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static void crashlog_activate(void)
56{
57 struct sigaction sa;
58
59 sa.sa_handler = crashdump;
60 sigemptyset(&sa.sa_mask);
61
62 /* We want to fall through to default handler */
63 sa.sa_flags = SA_RESETHAND;
64 sigaction(SIGILL, &sa, NULL);
65 sigaction(SIGABRT, &sa, NULL);
66 sigaction(SIGFPE, &sa, NULL);
67 sigaction(SIGSEGV, &sa, NULL);
68 sigaction(SIGBUS, &sa, NULL);
69}
70#else
71void send_backtrace(const char *why)
72{

Callers 1

daemon_setupFunction · 0.85

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected