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 c77c95d2c7..bdc70e84a1 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: 1 }).length + , maxConcurrentWorkers : require('os').cpus().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).unref() + }, this.options.forcedKillTime) ;delete this.children[childId] this.activeChildren-- } |