stub-blender: the orphan's grandchild does not keep the stub alive
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c109f436b8
commit
ae7c8a1e52
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ if (clip.startsWith("hang")) {
|
|||
if (clip.startsWith("slow")) await new Promise((resolve) => setTimeout(resolve, 6000));
|
||||
if (clip.startsWith("orphan")) {
|
||||
const before = grandchildren();
|
||||
spawnGrandchild();
|
||||
spawnGrandchild().unref(); // a live child would keep this process, and so the export, alive
|
||||
for (let waited = 0; grandchildren() === before && waited < 3000; waited += 25) await new Promise((resolve) => setTimeout(resolve, 25));
|
||||
}
|
||||
writeFileSync(fbx, Buffer.concat([Buffer.from("FBX-STUB:"), readFileSync(bvh)]));
|
||||
|
|
|
|||
Loading…
Reference in a new issue