Browse Source

platform: win32: sdl: Fix zombie processes after early Sys_Error on windows+sdl

pull/2/head
lewa_j 4 years ago committed by Alibek Omarov
parent
commit
63c4b2748c
  1. 6
      engine/platform/sdl/sys_sdl.c

6
engine/platform/sdl/sys_sdl.c

@ -64,8 +64,14 @@ void Platform_Init( void )
#if XASH_POSIX #if XASH_POSIX
Posix_Daemonize(); Posix_Daemonize();
#endif #endif
#ifdef XASH_WIN32
Wcon_CreateConsole(); // system console used by dedicated server or show fatal errors
#endif
} }
void Platform_Shutdown( void ) void Platform_Shutdown( void )
{ {
#ifdef XASH_WIN32
Wcon_DestroyConsole();
#endif
} }
Loading…
Cancel
Save