Skip to content

Commit c278019

Browse files
committed
fix(tooling): clean child trees on forwarded signals
1 parent 447fec6 commit c278019

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎scripts/openclaw-cross-os-release-checks.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4035,12 +4035,11 @@ async function runCommandInvocation(invocation, options) {
40354035
child.on("close", (exitCode) => {
40364036
if (forwardedSignalExitCode !== undefined) {
40374037
activeChildTree.killChildTree("SIGKILL");
4038-
}
4039-
activeChildTree.unregister();
4040-
if (forwardedSignalExitCode !== undefined) {
4038+
activeChildTree.unregister();
40414039
finalize(exitForwardedSignalWhenChildTreesDone);
40424040
return;
40434041
}
4042+
activeChildTree.unregister();
40444043
finalize(() => {
40454044
const result = {
40464045
exitCode: exitCode ?? 1,

0 commit comments

Comments
 (0)