diff options
author | antirez <antirez@gmail.com> | 2019-09-27 12:17:47 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-09-27 12:17:47 +0200 |
commit | 721d3c9e0cb86117c9ebd61552facc88a286d47c (patch) | |
tree | 21e228d90569ffed4f2a0176e3a4627b372003e6 /src/server.h | |
parent | de1f82aa3302461c21f6cfcb8e8972e865b02174 (diff) | |
download | redis-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.h | 2 |
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(); |