fix(core): update
This commit is contained in:
parent
c1a8c638bf
commit
3f0c9e9fe0
@ -32,9 +32,9 @@ export class SmartExit {
|
|||||||
if (childProcessArg.killed) {
|
if (childProcessArg.killed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
process.kill(-pid, 'SIGKILL');
|
process.kill(pid, 'SIGKILL');
|
||||||
});
|
});
|
||||||
process.kill(-pid, 'SIGINT');
|
process.kill(pid, 'SIGINT');
|
||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
});
|
});
|
||||||
@ -66,6 +66,7 @@ export class SmartExit {
|
|||||||
ora.text('SMARTEXIT: uncaught exception...');
|
ora.text('SMARTEXIT: uncaught exception...');
|
||||||
console.log(err);
|
console.log(err);
|
||||||
await this.killAll();
|
await this.killAll();
|
||||||
|
process.exit(1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user