MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rdbCheckHandleCrash

Function rdbCheckHandleCrash

src/redis-check-rdb.cpp:159–166  ·  view source on GitHub ↗

During RDB check we setup a special signal handler for memory violations * and similar conditions, so that we can log the offending part of the RDB * if the crash is due to broken content. */

Source from the content-addressed store, hash-verified

157 * and similar conditions, so that we can log the offending part of the RDB
158 * if the crash is due to broken content. */
159void rdbCheckHandleCrash(int sig, siginfo_t *info, void *secret) {
160 UNUSED(sig);
161 UNUSED(info);
162 UNUSED(secret);
163
164 rdbCheckError("Server crash checking the specified RDB file!");
165 exit(1);
166}
167
168void rdbCheckSetupSignals(void) {
169 struct sigaction act;

Callers

nothing calls this directly

Calls 1

rdbCheckErrorFunction · 0.85

Tested by

no test coverage detected