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

Function crashdump

common/daemon.c:78–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78static void crashdump(int sig)
79{
80 char why[100];
81
82 snprintf(why, 100, "FATAL SIGNAL %d", sig);
83 send_backtrace(why);
84
85 /* Probably shouldn't return. */
86 if (bt_exit)
87 bt_exit();
88
89 /* This time it will kill us instantly. */
90 kill(getpid(), sig);
91}
92
93static void crashlog_activate(void)
94{

Callers

nothing calls this directly

Calls 1

send_backtraceFunction · 0.70

Tested by

no test coverage detected