2 Commits

Author SHA1 Message Date
7ad7749ba7 1.0.14 2019-05-28 10:28:57 +02:00
3f0c9e9fe0 fix(core): update 2019-05-28 10:28:56 +02:00
3 changed files with 5 additions and 4 deletions

2
package-lock.json generated
View File

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

View File

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

View File

@ -32,9 +32,9 @@ export class SmartExit {
if (childProcessArg.killed) {
return;
}
process.kill(-pid, 'SIGKILL');
process.kill(pid, 'SIGKILL');
});
process.kill(-pid, 'SIGINT');
process.kill(pid, 'SIGINT');
counter++;
});
@ -66,6 +66,7 @@ export class SmartExit {
ora.text('SMARTEXIT: uncaught exception...');
console.log(err);
await this.killAll();
process.exit(1);
});
}
}