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

Function ldbRemoveChild

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

If the specified pid is among the list of children spawned for * forked debugging sessions, it is removed from the children list. * If the pid was found non-zero is returned. */

Source from the content-addressed store, hash-verified

2025 * forked debugging sessions, it is removed from the children list.
2026 * If the pid was found non-zero is returned. */
2027int ldbRemoveChild(pid_t pid) {
2028 listNode *ln = listSearchKey(ldb.children,(void*)(unsigned long)pid);
2029 if (ln) {
2030 listDelNode(ldb.children,ln);
2031 return 1;
2032 }
2033 return 0;
2034}
2035
2036/* Return the number of children we still did not receive termination
2037 * acknowledge via wait() in the parent process. */

Callers 1

checkChildrenDoneFunction · 0.85

Calls 2

listSearchKeyFunction · 0.85
listDelNodeFunction · 0.85

Tested by

no test coverage detected