chore: kill electron process on ctrl+c (#5366)

This commit is contained in:
Pavel Feldman 2021-02-08 16:04:15 -08:00 committed by GitHub
parent d499cf08d1
commit d49a1d8174
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,6 +158,9 @@ export class Electron {
cwd: options.cwd,
tempDirectories: [],
attemptToGracefullyClose: () => app!.close(),
handleSIGINT: true,
handleSIGTERM: true,
handleSIGHUP: true,
onExit: () => {},
});