static int	shuttingdown = 0;
tengine_shutdown(int nsig, gpointer unused){	static int	shuttingdown = 0;  	if (!shuttingdown) {		shuttingdown = 1;	}	if (mainloop != NULL && g_main_is_running(mainloop)) {		g_main_quit(mainloop);	}else{		exit(LSB_EXIT_OK);	}	return TRUE;}