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

Function RM_ExitFromChild

app/redis-6.2.6/src/module.c:7889–7893  ·  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

7887 * retcode will be provided to the done handler executed on the parent process.
7888 */
7889int RM_ExitFromChild(int retcode) {
7890 sendChildCowInfo(CHILD_INFO_TYPE_MODULE_COW_SIZE, "Module fork");
7891 exitFromChild(retcode);
7892 return REDISMODULE_OK;
7893}
7894
7895/* Kill the active module forked child, if there is one active and the
7896 * 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