diff --git a/src/dedicated/i_system.c b/src/dedicated/i_system.c index 2e32b2b11..fb3cc2731 100644 --- a/src/dedicated/i_system.c +++ b/src/dedicated/i_system.c @@ -1378,14 +1378,12 @@ static void I_Fork(void) fclose(logstream);/* the child has this */ c = wait(&status); - #ifdef LOGMESSAGES /* By the way, exit closes files. */ logstream = fopen(logfilename, "at"); #else logstream = 0; #endif - if (c == -1) { kill(child, SIGKILL); @@ -1447,7 +1445,6 @@ void I_Quit(void) goto death; quiting = false; - I_ShutdownConsole(); M_SaveConfig(NULL); //save game config, cvars.. D_SaveBan(); // save the ban list G_SaveGameData(false); // Tails 12-08-2002 @@ -1537,8 +1534,6 @@ FUNCIERROR void ATTRNORETURN I_Error(const char *error, ...) #endif // --- - I_ShutdownConsole(); - M_SaveConfig(NULL); // save game config, cvars.. D_SaveBan(); // save the ban list G_SaveGameData(false); // Tails 12-08-2002 @@ -1659,9 +1654,10 @@ void I_ShutdownSystem(void) { INT32 c; -#ifndef NEWSIGNALHANDLER - I_ShutdownConsole(); +#ifdef NEWSIGNALHANDLER + if (M_CheckParm("-nofork")) #endif + I_ShutdownConsole(); for (c = MAX_QUIT_FUNCS-1; c >= 0; c--) if (quit_funcs[c]) diff --git a/src/sdl/i_system.cpp b/src/sdl/i_system.cpp index 87fec2f2f..7e1a93835 100644 --- a/src/sdl/i_system.cpp +++ b/src/sdl/i_system.cpp @@ -2008,7 +2008,6 @@ FUNCNORETURN void ATTRNORETURN I_Quit(void) is_quitting = true; SDL_ShowCursor(SDL_TRUE); - I_ShutdownConsole(); M_SaveConfig(NULL); //save game config, cvars.. D_SaveBan(); // save the ban list G_SaveGameData(false); // Tails 12-08-2002 @@ -2114,8 +2113,6 @@ FUNCIERROR void ATTRNORETURN I_Error(const char *error, ...) // --- - I_ShutdownConsole(); - M_SaveConfig(NULL); // save game config, cvars.. D_SaveBan(); // save the ban list G_SaveGameData(false); // Tails 12-08-2002