MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / crashHandler

Function crashHandler

src/debug.c:77–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void crashHandler
78(
79 int sig,
80 siginfo_t *info,
81 void *ucontext
82) {
83 // pause all working threads
84 // NOTE: pausing is an async operation
85 ThreadPools_Pause();
86
87 startCrashReport();
88
89 // log currently executing GRAPH commands
90 logCommands();
91
92 endCrashReport();
93
94 // call previous (Redis original) handler
95 (*old_act.sa_sigaction)(sig, info, ucontext);
96}
97
98void setupCrashHandlers
99(

Callers

nothing calls this directly

Calls 4

ThreadPools_PauseFunction · 0.85
startCrashReportFunction · 0.85
logCommandsFunction · 0.85
endCrashReportFunction · 0.85

Tested by

no test coverage detected