(pid: number)
| 152 | } |
| 153 | |
| 154 | function collectLinuxChildPids(pid: number): number[] { |
| 155 | const childPids = listLinuxChildPids(pid); |
| 156 | const result: number[] = []; |
| 157 | |
| 158 | for (const childPid of childPids) { |
| 159 | result.push(...collectLinuxChildPids(childPid)); |
| 160 | result.push(childPid); |
| 161 | } |
| 162 | |
| 163 | return result; |
| 164 | } |
| 165 | |
| 166 | function listLinuxChildPids(pid: number): number[] { |
| 167 | const procChildren = readLinuxChildrenFromProc(pid); |
no test coverage detected