Skip to content

Commit

Permalink
fix infinite loop on iojs and node 0.12.x
Browse files Browse the repository at this point in the history
  • Loading branch information
setthase committed Jun 12, 2015
1 parent 281a930 commit 425e44c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/master.coffee
Expand Up @@ -184,7 +184,11 @@ module.exports = class Master extends EventEmitter
@addSignalListener 'SIGCHLD', @maintenance

# Set cluster runtime environment
cluster.setupMaster { exec : @settings.path, args : @settings.args, silent : @settings.silent }
cluster.setupMaster {
exec : @settings.path,
args : (@settings.args or process.argv.slice(2)),
silent : (@settings.silent or false)
}

# Spawn another worker if workers count is below size in settings
__define 'spawn', value: (force) ->
Expand Down

0 comments on commit 425e44c

Please sign in to comment.