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

Function RM_KillForkChild

src/module.cpp:8115–8121  ·  view source on GitHub ↗

Can be used to kill the forked child process from the parent process. * child_pid would be the return value of RedisModule_Fork. */

Source from the content-addressed store, hash-verified

8113/* Can be used to kill the forked child process from the parent process.
8114 * child_pid would be the return value of RedisModule_Fork. */
8115int RM_KillForkChild(int child_pid) {
8116 /* Kill module child, wait for child exit. */
8117 if (TerminateModuleForkChild(child_pid,1) == C_OK)
8118 return REDISMODULE_OK;
8119 else
8120 return REDISMODULE_ERR;
8121}
8122
8123void ModuleForkDoneHandler(int exitcode, int bysignal) {
8124 serverLog(LL_NOTICE,

Callers

nothing calls this directly

Calls 1

TerminateModuleForkChildFunction · 0.85

Tested by

no test coverage detected