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

Function sigKillChildHandler

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

This is the signal handler for children process. It is currently useful * in order to track the SIGUSR1, that we send to a child in order to terminate * it in a clean way, without the parent detecting an error and stop * accepting writes because of a write error condition. */

Source from the content-addressed store, hash-verified

5822 * it in a clean way, without the parent detecting an error and stop
5823 * accepting writes because of a write error condition. */
5824static void sigKillChildHandler(int sig) {
5825 UNUSED(sig);
5826 int level = server.in_fork_child == CHILD_TYPE_MODULE? LL_VERBOSE: LL_WARNING;
5827 serverLogFromHandler(level, "Received SIGUSR1 in child, exiting now.");
5828 exitFromChild(SERVER_CHILD_NOERROR_RETVAL);
5829}
5830
5831void setupChildSignalHandlers(void) {
5832 struct sigaction act;

Callers

nothing calls this directly

Calls 2

serverLogFromHandlerFunction · 0.85
exitFromChildFunction · 0.85

Tested by

no test coverage detected