diff --git a/lib/master.js b/lib/master.js index 7a8f16c..63f005b 100644 --- a/lib/master.js +++ b/lib/master.js @@ -290,6 +290,7 @@ Master.prototype.start = function(fn){ Master.prototype.startWorker = function(){ var worker = new Worker(this); + this.worker = worker; var sock = this.sock = dgram.createSocket('unix_dgram'); sock.on('listening', worker.start.bind(worker)); sock.bind(this.clientSocketPath);