delet I_ShutdownConsole spam

without process forking I_ShutdownSystem will handle it, otherwise the parent process calls it before exiting
This commit is contained in:
alufolie91 committed 2026-05-04 23:01:43 +02:00
1 parent 3b42afa34d
commit 66abc28b2a
2 files changed
+3 -10

No files matched your search

+3 -7
View File
@@ -1384,14 +1384,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);
@@ -1453,7 +1451,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
@@ -1543,8 +1540,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
@@ -1665,9 +1660,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])
-3
View File
@@ -2014,7 +2014,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
@@ -2120,8 +2119,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