diff --git a/src/module.c b/src/module.c index 27d5eb863..217478705 100644 --- a/src/module.c +++ b/src/module.c @@ -5189,7 +5189,7 @@ int RM_ExitFromChild(int retcode) { /* Kill the active module forked child, if there is one active and the * pid matches, and returns C_OK. Otherwise if there is no active module * child or the pid does not match, return C_ERR without doing anything. */ -void TerminateModuleForkChild(int child_pid, int wait) { +int TerminateModuleForkChild(int child_pid, int wait) { /* Module child should be active and pid should match. */ if (server.module_child_pid == -1 || server.module_child_pid != child_pid) return C_ERR; diff --git a/src/server.h b/src/server.h index 52abef4b8..91c7219a0 100644 --- a/src/server.h +++ b/src/server.h @@ -1552,7 +1552,7 @@ void moduleReleaseGIL(void); void moduleNotifyKeyspaceEvent(int type, const char *event, robj *key, int dbid); void moduleCallCommandFilters(client *c); void ModuleForkDoneHandler(int exitcode, int bysignal); -void TerminateModuleForkChild(int child_pid, int wait); +int TerminateModuleForkChild(int child_pid, int wait); ssize_t rdbSaveModulesAux(rio *rdb, int when); int moduleAllDatatypesHandleErrors();