mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 08:00:49 +00:00
Clear child data when opening the pipes.
This is important both to reset the magic to 0, so that it will not match if the structure is not explicitly set, and to initialize other things we may add like counters and such.
This commit is contained in:
parent
e565632e59
commit
e9d861ec69
@ -40,6 +40,8 @@ void openChildInfoPipe(void) {
|
||||
closeChildInfoPipe();
|
||||
} else if (anetNonBlock(NULL,server.child_info_pipe[0]) != ANET_OK) {
|
||||
closeChildInfoPipe();
|
||||
} else {
|
||||
memset(&server.child_info_data,0,sizeof(server.child_info_data));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user