2 Commits

Author SHA1 Message Date
466a03e27b 1.0.15 2019-05-28 10:34:57 +02:00
fe5e220087 fix(core): update 2019-05-28 10:34:57 +02:00
3 changed files with 3 additions and 2 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartexit", "name": "@pushrocks/smartexit",
"version": "1.0.14", "version": "1.0.15",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartexit", "name": "@pushrocks/smartexit",
"version": "1.0.14", "version": "1.0.15",
"private": false, "private": false,
"description": "do things before one exists a process", "description": "do things before one exists a process",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -59,6 +59,7 @@ export class SmartExit {
process.on('SIGINT', async () => { process.on('SIGINT', async () => {
ora.text('Ctrl-C... or SIGINT signal received!'); ora.text('Ctrl-C... or SIGINT signal received!');
await this.killAll(); await this.killAll();
process.exit(0);
}); });
//catch uncaught exceptions, trace, then exit normally //catch uncaught exceptions, trace, then exit normally