chore: kill electron process on ctrl+c (#5366)
This commit is contained in:
parent
d499cf08d1
commit
d49a1d8174
|
|
@ -158,6 +158,9 @@ export class Electron {
|
||||||
cwd: options.cwd,
|
cwd: options.cwd,
|
||||||
tempDirectories: [],
|
tempDirectories: [],
|
||||||
attemptToGracefullyClose: () => app!.close(),
|
attemptToGracefullyClose: () => app!.close(),
|
||||||
|
handleSIGINT: true,
|
||||||
|
handleSIGTERM: true,
|
||||||
|
handleSIGHUP: true,
|
||||||
onExit: () => {},
|
onExit: () => {},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue