mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-19 00:18:27 +00:00
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:
@@ -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,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user