Merge branch 'pr-1506' into integration/validation-batch

This commit is contained in:
Alex Newman
2026-04-06 14:19:01 -07:00
2 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -174,6 +174,12 @@ child.on('error', (err) => {
process.exit(1);
});
child.on('close', (code) => {
child.on('close', (code, signal) => {
// Fix #1505: When the "start" subcommand forks a daemon, the parent bun
// process may be killed by signal (e.g. SIGKILL, exit code 137). The daemon
// is running fine — treat signal-based exits for "start" as success.
if (signal || (code > 128 && args.includes('start'))) {
process.exit(0);
}
process.exit(code || 0);
});