summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-09-27 12:23:07 +0200
committerantirez <antirez@gmail.com>2019-09-27 12:23:07 +0200
commit0a07f8ffeed8fc0a422287d847cf0c9de6c88393 (patch)
treeaf4463642d6589e67dd1454ddb9420ee6f5ce06b
parent721d3c9e0cb86117c9ebd61552facc88a286d47c (diff)
downloadredis-0a07f8ffeed8fc0a422287d847cf0c9de6c88393.tar.gz
TerminateModuleForkChild(): fix function prototype.
-rw-r--r--src/module.c2
-rw-r--r--src/server.h2
2 files changed, 2 insertions, 2 deletions
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();