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

Function crashlog_activate

common/daemon.c:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93static void crashlog_activate(void)
94{
95 struct sigaction sa;
96
97 sa.sa_handler = crashdump;
98 sigemptyset(&sa.sa_mask);
99
100 /* We want to fall through to default handler */
101 sa.sa_flags = SA_RESETHAND;
102 sigaction(SIGILL, &sa, NULL);
103 sigaction(SIGABRT, &sa, NULL);
104 sigaction(SIGFPE, &sa, NULL);
105 sigaction(SIGSEGV, &sa, NULL);
106 sigaction(SIGBUS, &sa, NULL);
107}
108
109static void steal_notify(tal_t *child, enum tal_notify_type n, tal_t *newparent)
110{

Callers 1

daemon_setupFunction · 0.85

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected