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. */
| 2025 | * forked debugging sessions, it is removed from the children list. |
| 2026 | * If the pid was found non-zero is returned. */ |
| 2027 | int 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. */ |
no test coverage detected