From 685220140a2b1cd6e60ac9b62236712e0d156c7c Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 28 Jul 2024 15:05:19 +0200 Subject: [PATCH] fix potential crash on nix while quitting --- src/sdl/i_system.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index b20eeba7d..7a7cd7e7e 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -3402,13 +3402,13 @@ INT32 I_StartupSystem(void) SDL_version SDLlinked; SDL_VERSION(&SDLcompiled) SDL_GetVersion(&SDLlinked); -#ifdef HAVE_THREADS - I_start_threads(); - I_AddExitFunc(I_stop_threads); -#endif I_StartupConsole(); #ifdef NEWSIGNALHANDLER I_Fork(); +#endif +#ifdef HAVE_THREADS + I_start_threads(); + I_AddExitFunc(I_stop_threads); #endif I_RegisterSignals(); I_OutputMsg("Compiled for SDL version: %d.%d.%d\n",