{
}
+#ifndef WIN32
static void signal_handler(int sig)
{
Con_Printf("Received signal %d, exiting...\n", sig);
static void InitSig(void)
{
-#ifndef WIN32
signal(SIGHUP, signal_handler);
signal(SIGINT, signal_handler);
signal(SIGQUIT, signal_handler);
signal(SIGFPE, signal_handler);
signal(SIGSEGV, signal_handler);
signal(SIGTERM, signal_handler);
-#endif
}
+#endif
void VID_SetMouse (qbool fullscreengrab, qbool relative, qbool hidecursor)
{
void VID_Init(void)
{
+#ifndef WIN32
InitSig(); // trap evil signals
+#endif
}
qbool VID_InitMode(viddef_mode_t *mode)