fix(core): update

This commit is contained in:
Philipp Kunz 2019-05-28 10:28:56 +02:00
parent c1a8c638bf
commit 3f0c9e9fe0

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);
});
}
}