Merge pull request #3539 from KimSeongIl/master

feat: add kill_retry_time argument
This commit is contained in:
Vincent Vallet 2018-03-23 19:40:03 +01:00 committed by GitHub
commit 1325704d95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -294,6 +294,10 @@
"docDescription": "Enable or disable the Windows popup when starting an app",
"default": true
},
"kill_retry_time": {
"type": "number",
"default" : 100
},
"write": {
"type": "boolean"
}

View File

@ -167,9 +167,9 @@ module.exports = function(God) {
clearInterval(timer);
return cb(null, true);
}
console.log('pid=%d msg=failed to kill - retrying in 100ms', pid);
console.log('pid=%d msg=failed to kill - retrying in %dms', pid, pm2_env.kill_retry_time);
return false;
}, 100);
}, pm2_env.kill_retry_time);
timeout = setTimeout(function() {
clearInterval(timer);