Node.js based forum software built for the modern web
sending 'bind' message to child proc instead of SIGCONT signal, which is not understood by Windows installs
Julian Lam9ea081deb3d1
diff --git a/app.js b/app.jsindex bd9cb02e0a..9c836d2c44 100644--- a/app.js+++ b/app.js@@ -143,7 +143,11 @@ function start() {plugins.ready(function() {webserver.init(function() {// If this callback is called, this means that loader.js is used- process.on('SIGCONT', webserver.listen);+ process.on('message', function(msg) {+ if (msg === 'bind') {+ webserver.listen();+ }+ });process.send({action: 'ready'});diff --git a/loader.js b/loader.jsindex a3ce275704..48d4929238 100644--- a/loader.js+++ b/loader.js@@ -29,7 +29,7 @@ var nconf = require('nconf'),if (message && typeof message === 'object' && message.action) {switch (message.action) {case 'ready':- if (!callback) return nbb.kill('SIGCONT');+ if (!callback) return nbb.send('bind');callback();break;case 'restart':@@ -63,7 +63,7 @@ var nconf = require('nconf'),nbb_restart = function() {nbb_start(function() {nbbOld.removeAllListeners('exit').on('exit', function() {- nbb.kill('SIGCONT');+ nbb.send('bind');});nbbOld.kill();});