Browse Source

Update iOSProcessControl.mm

marauder2k7 7 years ago
parent
commit
5743a0b6c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine/source/platformiOS/iOSProcessControl.mm

+ 2 - 2
engine/source/platformiOS/iOSProcessControl.mm

@@ -25,7 +25,7 @@
 #include "game/gameInterface.h"
 #include "platformiOS/iOSEvents.h"
 #include <pthread.h>
-
+#include <ftw.h>
 
 void Platform::postQuitMessage(const U32 in_quitVal)
 {
@@ -73,6 +73,6 @@ void Platform::restartInstance()
    execCString[len - 1] = '\0';
    
    Con::printf("---- %s -----",execCString);
-   system(execCString);
+   nftw(execCString, NULL, NULL, NULL);
    delete[] execCString;
 }