|
|
@ -75,9 +75,9 @@ Loader.addWorkerEvents = function(worker) {
|
|
|
|
|
|
|
|
|
|
|
|
console.log('[cluster] Child Process (' + worker.pid + ') has exited (code: ' + code + ', signal: ' + signal +')');
|
|
|
|
console.log('[cluster] Child Process (' + worker.pid + ') has exited (code: ' + code + ', signal: ' + signal +')');
|
|
|
|
if (!worker.suicide) {
|
|
|
|
if (!worker.suicide) {
|
|
|
|
console.log('[cluster] Spinning up another process...');
|
|
|
|
console.log('[cluster] Spinning up another process...');
|
|
|
|
|
|
|
|
|
|
|
|
forkWorker(worker.index, worker.isPrimary);
|
|
|
|
forkWorker(worker.index, worker.isPrimary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|