TerminateModuleForkChild(): fix function prototype.

This commit is contained in:
antirez 2019-09-27 12:23:07 +02:00
parent 721d3c9e0c
commit 0a07f8ffee
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();