diff options
Diffstat (limited to 'deps/npm/node_modules/worker-farm/lib/farm.js')
-rw-r--r-- | deps/npm/node_modules/worker-farm/lib/farm.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/npm/node_modules/worker-farm/lib/farm.js b/deps/npm/node_modules/worker-farm/lib/farm.js index bdc70e84a10..c77c95d2c71 100644 --- a/deps/npm/node_modules/worker-farm/lib/farm.js +++ b/deps/npm/node_modules/worker-farm/lib/farm.js @@ -2,7 +2,7 @@ const DEFAULT_OPTIONS = { maxCallsPerWorker : Infinity - , maxConcurrentWorkers : require('os').cpus().length + , maxConcurrentWorkers : (require('os').cpus() || { length: 1 }).length , maxConcurrentCallsPerWorker : 10 , maxConcurrentCalls : Infinity , maxCallTime : Infinity // exceed this and the whole worker is terminated @@ -132,7 +132,7 @@ Farm.prototype.stopChild = function (childId) { setTimeout(function () { if (child.exitCode === null) child.child.kill('SIGKILL') - }, this.options.forcedKillTime) + }, this.options.forcedKillTime).unref() ;delete this.children[childId] this.activeChildren-- } |