rendered paste bodyIndex: src/ports/linux/sys_linux.c
===================================================================
--- src/ports/linux/sys_linux.c (revision 5516)
+++ src/ports/linux/sys_linux.c (working copy)
@@ -74,7 +74,7 @@
cvar_t *nostdout;
unsigned sys_frame_time;
-
+qboolean sys_play = qtrue;
uid_t saved_euid;
qboolean stdin_active = qtrue;
@@ -348,7 +348,8 @@
CL_Shutdown ();
Qcommon_Shutdown ();
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);
- exit(0);
+/* exit(0); */
+ sys_play = qfalse;
}
/**
@@ -647,7 +648,7 @@
}
newtime = Sys_Milliseconds();
- for (;;) {
+ while (sys_play) {
/* find time spent rendering last frame */
oldtime = newtime;
newtime = Sys_Milliseconds();