stub-blender: the hung export's grandchild logs its pid

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-24 20:49:15 +02:00
commit bfbcd7a1ee

View file

@ -28,7 +28,7 @@ console.error(`stub-blender-stderr ${clip}`);
if (clip.startsWith("fail")) process.exit(1);
if (clip.startsWith("silent")) process.exit(0);
if (clip.startsWith("hang")) {
spawn(process.execPath, ["-e", `require('fs').appendFileSync(${JSON.stringify(log)}, 'grandchild ' + process.pid + '\n'); setInterval(() => {}, 1000)`], { stdio: "ignore" });
spawn(process.execPath, ["-e", `require('fs').appendFileSync(${JSON.stringify(log)}, 'grandchild ' + process.pid + '\\n'); setInterval(() => {}, 1000)`], { stdio: "ignore" });
process.on("SIGTERM", () => {});
setInterval(() => {}, 1000);
} else {