fix(cli): stopping remove-background on a Mac no longer aborts the process (#6848)

* fix(cli): stopping remove-background on a Mac no longer aborts the process

* fix(cli): a quit after background removal released its session exits at once

* Revert "fix(cli): a quit after background removal released its session exits at once"

This reverts commit 3b9d6ffc24.
This commit is contained in:
Miguel Ángel
2026-10-31 17:08:22 +00:00
committed by GitHub
parent 1e5413f34c
commit ea7d43c616
5 changed files with 211 additions and 27 deletions
+8 -1
View File
@@ -97,6 +97,7 @@ import {
CliUsageError,
USAGE_EXIT_CODE,
consumeCommandResult,
endProcess,
outputWritten,
registerRootExitCodeSanitizer,
registerRootExitRequester,
@@ -373,7 +374,13 @@ registerRootExitRequester((exitCode) => {
presented: true,
}).finally(async () => {
await outputWritten();
process.exit(exitCode);
endProcess(exitCode, {
exit: (code) => process.exit(code),
setExitCode: (code) => {
process.exitCode = code;
},
later: setTimeout,
});
});
});