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

Function RM_KillForkChild

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

7917/* Can be used to kill the forked child process from the parent process.
7918 * child_pid would be the return value of RedisModule_Fork. */
7919int RM_KillForkChild(int child_pid) {
7920 /* Kill module child, wait for child exit. */
7921 if (TerminateModuleForkChild(child_pid,1) == C_OK)
7922 return REDISMODULE_OK;
7923 else
7924 return REDISMODULE_ERR;
7925}
7926
7927void ModuleForkDoneHandler(int exitcode, int bysignal) {
7928 serverLog(LL_NOTICE,

Callers

nothing calls this directly

Calls 1

TerminateModuleForkChildFunction · 0.85

Tested by

no test coverage detected