Can be used to kill the forked child process from the parent process. * child_pid would be the return value of RedisModule_Fork. */
| 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. */ |
| 7919 | int 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 | |
| 7927 | void ModuleForkDoneHandler(int exitcode, int bysignal) { |
| 7928 | serverLog(LL_NOTICE, |
nothing calls this directly
no test coverage detected