case SIGHUP:	queueAction( RELOAD_SCRIPTS );		break; case SIGUSR1:	queueAction( RELOAD_ACCOUNTS );		break; case SIGUSR2:	queueAction( SAVE_WORLD );			break; case SIGTERM: keeprun = 0 ; break; default: break;
case SIGHUP: Server::instance()->queueAction( RELOAD_SCRIPTS ); break; case SIGUSR1: Server::instance()->queueAction( RELOAD_ACCOUNTS ); break; case SIGUSR2: Server::instance()->queueAction( SAVE_WORLD ); break; case SIGTERM: Server::instance()->cancel(); break; default: break;
void signal_handler(int signal){	switch (signal)	{	case SIGHUP:	queueAction( RELOAD_SCRIPTS );		break;	case SIGUSR1:	queueAction( RELOAD_ACCOUNTS );		break;	case SIGUSR2:	queueAction( SAVE_WORLD );			break;	case SIGTERM:		keeprun = 0 ;		break;	default:		break;	}}