Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
0a07f8ff
Commit
0a07f8ff
authored
Sep 27, 2019
by
antirez
Browse files
TerminateModuleForkChild(): fix function prototype.
parent
721d3c9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/module.c
View file @
0a07f8ff
...
...
@@ -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
;
...
...
src/server.h
View file @
0a07f8ff
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment