summaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-09-27 12:17:47 +0200
committerantirez <antirez@gmail.com>2019-09-27 12:17:47 +0200
commit721d3c9e0cb86117c9ebd61552facc88a286d47c (patch)
tree21e228d90569ffed4f2a0176e3a4627b372003e6 /src/server.h
parentde1f82aa3302461c21f6cfcb8e8972e865b02174 (diff)
downloadredis-721d3c9e0cb86117c9ebd61552facc88a286d47c.tar.gz
TerminateModuleForkChild(): move safety checks there.
We don't want that the API could be used directly in an unsafe way, without checking if there is an active child. Now the safety checks are moved directly in the function performing the operations.
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.h b/src/server.h
index 2ab3f2b45..52abef4b8 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 wait);
+void TerminateModuleForkChild(int child_pid, int wait);
ssize_t rdbSaveModulesAux(rio *rdb, int when);
int moduleAllDatatypesHandleErrors();