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

Function ModuleForkDoneHandler

src/module.cpp:8123–8133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8121}
8122
8123void ModuleForkDoneHandler(int exitcode, int bysignal) {
8124 serverLog(LL_NOTICE,
8125 "Module fork exited pid: %ld, retcode: %d, bysignal: %d",
8126 (long) g_pserver->child_pid, exitcode, bysignal);
8127 if (moduleForkInfo.done_handler) {
8128 moduleForkInfo.done_handler(exitcode, bysignal,
8129 moduleForkInfo.done_handler_user_data);
8130 }
8131 moduleForkInfo.done_handler = NULL;
8132 moduleForkInfo.done_handler_user_data = NULL;
8133}
8134
8135/* --------------------------------------------------------------------------
8136 * ## Server hooks implementation

Callers 1

checkChildrenDoneFunction · 0.85

Calls 1

serverLogFunction · 0.85

Tested by

no test coverage detected