Skip to content

Commit 74d1b98

Browse files
committed
fix(link): preserve handled-signal exit wiring
1 parent e05e2af commit 74d1b98

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/client/runtime.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,8 @@ export async function startClientRuntime(
491491
cleanup();
492492
await flushLinkDiagnostics();
493493
// launchd relaunches only unsuccessful exits; an external signal must still count.
494-
process.exit(restored?.success === false ? 1 : handledSignalExitCode(signal));
494+
if (restored?.success === false) process.exit(1);
495+
else process.exit(handledSignalExitCode(signal));
495496
}
496497
})();
497498
};

0 commit comments

Comments
 (0)