MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / closeChildInfoPipe

Function closeChildInfoPipe

src/childinfo.cpp:58–68  ·  view source on GitHub ↗

Close the pipes opened with openChildInfoPipe(). */

Source from the content-addressed store, hash-verified

56
57/* Close the pipes opened with openChildInfoPipe(). */
58void closeChildInfoPipe(void) {
59 if (g_pserver->child_info_pipe[0] != -1 ||
60 g_pserver->child_info_pipe[1] != -1)
61 {
62 close(g_pserver->child_info_pipe[0]);
63 close(g_pserver->child_info_pipe[1]);
64 g_pserver->child_info_pipe[0] = -1;
65 g_pserver->child_info_pipe[1] = -1;
66 g_pserver->child_info_nread = 0;
67 }
68}
69
70/* Send save data to parent. */
71void sendChildInfoGeneric(childInfoType info_type, size_t keys, double progress, const char *pname) {

Callers 6

launchRdbSaveThreadFunction · 0.85
rdbSaveToSlavesSocketsFunction · 0.85
openChildInfoPipeFunction · 0.85
resetChildStateFunction · 0.85
checkChildrenDoneFunction · 0.85
redisForkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected