fix: prevent SIGTSTP crash on Windows (#2018)
This commit is contained in:
parent
642c0f5a9e
commit
28e3c2e72c
1 changed files with 5 additions and 0 deletions
|
|
@ -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 = () => {};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue