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

Function RM_ExitFromChild

src/module.cpp:8085–8089  ·  view source on GitHub ↗

Call from the child process when you want to terminate it. * retcode will be provided to the done handler executed on the parent process. */

Source from the content-addressed store, hash-verified

8083 * retcode will be provided to the done handler executed on the parent process.
8084 */
8085int RM_ExitFromChild(int retcode) {
8086 sendChildCowInfo(CHILD_INFO_TYPE_MODULE_COW_SIZE, "Module fork");
8087 exitFromChild(retcode);
8088 return REDISMODULE_OK;
8089}
8090
8091/* Kill the active module forked child, if there is one active and the
8092 * pid matches, and returns C_OK. Otherwise if there is no active module

Callers

nothing calls this directly

Calls 2

sendChildCowInfoFunction · 0.85
exitFromChildFunction · 0.85

Tested by

no test coverage detected