lib/proc.js
function setupHandlers() {

    function terminate(err) {
        util.log('Uncaught Error: ' + err.message);
        console.log(err.stack);
        if (proc.shutdownHook) {
            proc.shutdownHook(err, gracefulShutdown);
        }
    }

    process.on('uncaughtException', terminate);

    process.addListener('SIGINT', gracefulShutdown);

    process.addListener('SIGHUP', function () {
        util.log('RECIEVED SIGHUP signal, reloading log files...');
        reload(argv);
    });

}
function setupHandlers() {

    function terminate(err) {
        util.log('Uncaught Error: ' + err.message);
        console.log(err.stack);
        if (proc.shutdownHook) {
            proc.shutdownHook(err, gracefulShutdown);
        }
    }

    process.on('uncaughtException', terminate);

    process.addListener('SIGINT', gracefulShutdown);

    process.addListener('SIGHUP', function () {
        util.log('RECIEVED SIGHUP signal, reloading log files...');
        reload(argv);
    });

}
function setupHandlers ( ) { function terminate ( err ) { util . log ( 'Uncaught Error: ' + err . message ) ; console . log ( err . stack ) ; if ( proc . shutdownHook ) { proc . shutdownHook ( err , gracefulShutdown ) ; } } process . on ( 'uncaughtException' , terminate ) ; process . addListener ( 'SIGINT' , gracefulShutdown ) ; process . addListener ( 'SIGHUP' , function ( ) { util . log ( 'RECIEVED SIGHUP signal, reloading log files...' ) ; reload ( argv ) ; } ) ; }
Reopen logfiles on SIGHUP
Exit on uncaught exceptions
Reopen logfiles on SIGHUP Exit on uncaught exceptions