From cf8c38d08e4bee07ca93c119f363becd10c230e0 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 a8af0bd54..223a69ee1 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -3406,13 +3406,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",