MCPcopy Create free account
hub / github.com/F-Stack/f-stack / exitFromChild

Function exitFromChild

app/redis-6.2.6/src/server.c:1233–1239  ·  view source on GitHub ↗

After an RDB dump or AOF rewrite we exit from children using _exit() instead of * exit(), because the latter may interact with the same file objects used by * the parent process. However if we are testing the coverage normal exit() is * used in order to obtain the right coverage information. */

Source from the content-addressed store, hash-verified

1231 * the parent process. However if we are testing the coverage normal exit() is
1232 * used in order to obtain the right coverage information. */
1233void exitFromChild(int retcode) {
1234#ifdef COVERAGE_TEST
1235 exit(retcode);
1236#else
1237 _exit(retcode);
1238#endif
1239}
1240
1241/*====================== Hash table type implementation ==================== */
1242

Callers 6

ldbEndSessionFunction · 0.85
sigKillChildHandlerFunction · 0.85
rdbSaveBackgroundFunction · 0.85
rdbSaveToSlavesSocketsFunction · 0.85
RM_ExitFromChildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected