Skip to content

Commit

Permalink
Make SIGINT actually kill the process not just ignore it
Browse files Browse the repository at this point in the history
This was to prevent the annoying line, but I ended up not killing the process.
  • Loading branch information
TomasHubelbauer committed Jun 3, 2024
1 parent c06d880 commit a008462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import promptAuthorization from './promptAuthorization.js';
electron.app.on('ready', async () => {
// Prevent "exited with signal SIGINT" to be printed to the console
// Note that this must be in the `ready` event handler
process.on("SIGINT", () => { });
process.on("SIGINT", () => process.exit(0));

let authorization = await promptAuthorization();

Expand Down

0 comments on commit a008462

Please sign in to comment.