From ae7c8a1e52062d128501d12b664a402708de7f97 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 24 Oct 2026 21:06:40 +0200 Subject: [PATCH] stub-blender: the orphan's grandchild does not keep the stub alive Co-Authored-By: Claude Opus 5.5 --- scripts/fixtures/stub-blender.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fixtures/stub-blender.mjs b/scripts/fixtures/stub-blender.mjs index 53e33ab..a951240 100755 --- a/scripts/fixtures/stub-blender.mjs +++ b/scripts/fixtures/stub-blender.mjs @@ -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)]));