mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 03:33:25 +00:00
fix(process): retain wide descendant inventories (#10386)
This commit is contained in:
1 parent
bf63760cb4
commit
4566e483ab
2 files changed
+72
-1
No files matched your search
@@ -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;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user