removed node cluster spawn procs on ports

This commit is contained in:
barisusakli
2014-12-03 14:03:41 -05:00
parent 3ad3e781f3
commit 64e13df14c
8 changed files with 139 additions and 238 deletions

View File

@@ -2,7 +2,6 @@
var async = require('async'),
winston = require('winston'),
cluster = require('cluster'),
fs = require('fs'),
path = require('path'),
@@ -51,7 +50,7 @@ SocketAdmin.before = function(socket, method, next) {
SocketAdmin.reload = function(socket, data, callback) {
events.logWithUser(socket.uid, ' is reloading NodeBB');
if (cluster.isWorker) {
if (process.send) {
process.send({
action: 'reload'
});