MCPcopy Create free account
hub / github.com/F-Stack/f-stack / removeSignalHandlers

Function removeSignalHandlers

app/redis-6.2.6/src/server.c:5808–5818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5806}
5807
5808void removeSignalHandlers(void) {
5809 struct sigaction act;
5810 sigemptyset(&act.sa_mask);
5811 act.sa_flags = SA_NODEFER | SA_RESETHAND;
5812 act.sa_handler = SIG_DFL;
5813 sigaction(SIGSEGV, &act, NULL);
5814 sigaction(SIGBUS, &act, NULL);
5815 sigaction(SIGFPE, &act, NULL);
5816 sigaction(SIGILL, &act, NULL);
5817 sigaction(SIGABRT, &act, NULL);
5818}
5819
5820/* This is the signal handler for children process. It is currently useful
5821 * in order to track the SIGUSR1, that we send to a child in order to terminate

Callers 3

updateSighandlerEnabledFunction · 0.85
_serverAssertFunction · 0.85
_serverPanicFunction · 0.85

Calls 1

sigactionClass · 0.70

Tested by

no test coverage detected