Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed stand-alone support with a file path. Closes #141 [reported by …

…SebastianEdwards]
  • Loading branch information...
commit 4a9ed216e6d69305f3c50209de81ba3a4e5a88c0 1 parent 80bcf50
TJ Holowaychuk tj authored
2  lib/worker.js
View
@@ -77,7 +77,7 @@ Worker.prototype.start = function(){
this.stdin.resume();
// demote usr/group
- if (this.server) {
+ if (this.server && this.server.listenFD) {
this.server.on('listening', function(){
var group = self.options.group;
if (group) process.setgid(group);
1  test/support/standalone.js
View
@@ -0,0 +1 @@
+
16 test/test.standalone.file.js
View
@@ -0,0 +1,16 @@
+
+/**
+ * Module dependencies.
+ */
+
+var cluster = require('../');
+
+cluster = cluster('./support/standalone')
+ .set('workers', 4)
+ .start();
+
+if (cluster.isMaster) {
+ setTimeout(function(){
+ process.kill(process.pid, 'SIGQUIT');
+ }, 500);
+}
Please sign in to comment.
Something went wrong with that request. Please try again.