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

Function ldbKillForkedSessions

app/redis-6.2.6/src/scripting.c:2043–2055  ·  view source on GitHub ↗

Kill all the forked sessions. */

Source from the content-addressed store, hash-verified

2041
2042/* Kill all the forked sessions. */
2043void ldbKillForkedSessions(void) {
2044 listIter li;
2045 listNode *ln;
2046
2047 listRewind(ldb.children,&li);
2048 while((ln = listNext(&li))) {
2049 pid_t pid = (unsigned long) ln->value;
2050 serverLog(LL_WARNING,"Killing debugging session %ld",(long)pid);
2051 kill(pid,SIGKILL);
2052 }
2053 listRelease(ldb.children);
2054 ldb.children = listCreate();
2055}
2056
2057/* Wrapper for EVAL / EVALSHA that enables debugging, and makes sure
2058 * that when EVAL returns, whatever happened, the session is ended. */

Callers 1

prepareForShutdownFunction · 0.85

Calls 5

listRewindFunction · 0.85
listNextFunction · 0.85
killFunction · 0.85
listReleaseFunction · 0.85
listCreateFunction · 0.85

Tested by

no test coverage detected