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

Function removeSignalHandlers

src/server.cpp:6845–6855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6843}
6844
6845void removeSignalHandlers(void) {
6846 struct sigaction act;
6847 sigemptyset(&act.sa_mask);
6848 act.sa_flags = SA_NODEFER | SA_RESETHAND;
6849 act.sa_handler = SIG_DFL;
6850 sigaction(SIGSEGV, &act, NULL);
6851 sigaction(SIGBUS, &act, NULL);
6852 sigaction(SIGFPE, &act, NULL);
6853 sigaction(SIGILL, &act, NULL);
6854 sigaction(SIGABRT, &act, NULL);
6855}
6856
6857/* This is the signal handler for children process. It is currently useful
6858 * in order to track the SIGUSR1, that we send to a child in order to terminate

Callers 3

_serverAssertFunction · 0.85
_serverPanicFunction · 0.85
updateSighandlerEnabledFunction · 0.85

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected