fix(process): retain wide descendant inventories (#10386)

This commit is contained in:
Kaoru0822 authored and GitHub committed 2026-11-13 10:49:10 -08:00
1 parent bf63760cb4
commit 4566e483ab
2 files changed
+72 -1

No files matched your search

+2 -1
View File
@@ -24,7 +24,8 @@ export const descendantsOf = (
if (visited.has(process.pid)) continue;
visited.add(process.pid);
descendants.push(process);
pending.push(...(childrenByParent.get(process.pid) ?? []));
for (const child of childrenByParent.get(process.pid) ?? [])
pending.push(child);
}
return descendants;
};