Skip to content

Commit

Permalink
make _id global
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanong committed Dec 22, 2014
1 parent e3d7d99 commit 9a68c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ var Promise = require('native-or-bluebird')
var cp = require('child_process')

var slice = [].slice
var _id = 0 // global ID increment

module.exports = Master

function Master(filename, options) {
options = options || {}
var slaves = []
var _id = 0

// create a new child process
runner.fork = function () {
Expand Down

0 comments on commit 9a68c1f

Please sign in to comment.