@ -28,6 +28,7 @@ Loader.init = function() {
exec : "app.js" ,
exec : "app.js" ,
silent : silent
silent : silent
} ) ;
} ) ;
Loader . primaryWorker = 1 ;
if ( silent ) {
if ( silent ) {
console . log = function ( value ) {
console . log = function ( value ) {
@ -56,8 +57,6 @@ Loader.init = function() {
} ) ;
} ) ;
}
}
worker . send ( 'bind' ) ;
// Kill an instance in the shutdown queue
// Kill an instance in the shutdown queue
var workerToKill = Loader . shutdown _queue . pop ( ) ;
var workerToKill = Loader . shutdown _queue . pop ( ) ;
if ( workerToKill ) {
if ( workerToKill ) {
@ -162,9 +161,8 @@ Loader.init = function() {
} ;
} ;
Loader . start = function ( ) {
Loader . start = function ( ) {
var worker ;
var output = logrotate ( { file : _ _dirname + '/logs/output.log' , size : '1m' , keep : 3 , compress : true } ) ,
worker ;
Loader . primaryWorker = 1 ;
for ( var x = 0 ; x < numCPUs ; x ++ ) {
for ( var x = 0 ; x < numCPUs ; x ++ ) {
// Only the first worker sets up templates/sounds/jobs/etc
// Only the first worker sets up templates/sounds/jobs/etc