fix: prevent SIGTSTP crash on Windows (#2018)

This commit is contained in:
Matt Haynes 2026-03-22 06:47:07 -06:00 committed by GitHub
parent 642c0f5a9e
commit 28e3c2e72c

View file

@ -2321,6 +2321,11 @@ export class InteractiveMode {
}
private handleCtrlZ(): void {
// On Windows, SIGTSTP doesn't exist - Ctrl+Z is not supported
if (process.platform === "win32") {
return;
}
// Ignore SIGINT while suspended so Ctrl+C in the terminal does not
// kill the backgrounded process. The handler is removed on resume.
const ignoreSigint = () => {};