2 Commits

Author SHA1 Message Date
eb137c3871 1.0.10 2019-05-23 17:54:42 +02:00
334a38c71e fix(core): update 2019-05-23 17:54:41 +02:00
3 changed files with 5 additions and 5 deletions

2
package-lock.json generated
View File

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

View File

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

View File

@ -19,13 +19,13 @@ export class SmartExit {
}
public async killAll() {
console.log('Checking for remaining child processes before exit...');
console.log('SMARTEXIT: Checking for remaining child processes before exit...');
if (this.processesToEnd.getArray().length > 0) {
console.log('found remaining child processes');
let counter = 1;
this.processesToEnd.forEach(async childProcessArg => {
const pid = childProcessArg.pid;
console.log(`killing process #${counter} with pid ${pid}`);
console.log(`SMARTEXIT: killing process #${counter} with pid ${pid}`);
plugins.smartdelay.delayFor(10000).then(() => {
if (childProcessArg.killed) {
return;
@ -37,7 +37,7 @@ export class SmartExit {
counter++;
});
} else {
console.log(`Everything looks clean. Ready to exit!`);
console.log(`SMARTEXIT: Everything looks clean. Ready to exit!`);
}
}