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