diff --git a/Engine/source/platformPOSIX/POSIXProcessControl.cpp b/Engine/source/platformPOSIX/POSIXProcessControl.cpp index 745240dd5..b8aa34504 100644 --- a/Engine/source/platformPOSIX/POSIXProcessControl.cpp +++ b/Engine/source/platformPOSIX/POSIXProcessControl.cpp @@ -34,6 +34,7 @@ #include #include #include "console/engineAPI.h" +#include "core/util/journal/process.h" #ifndef TORQUE_DEDICATED #include #endif @@ -147,6 +148,11 @@ void ProcessControlInit() //----------------------------------------------------------------------------- void Platform::postQuitMessage(const S32 in_quitVal) { + + Process::requestShutdown(); + return; + + // if we have a window send a quit event, otherwise just force shutdown #if 0 if (x86UNIXState->windowCreated()) @@ -234,4 +240,4 @@ void Platform::restartInstance() */ exit(0); } -#endif \ No newline at end of file +#endif