Browse Source

Don't wait for reload to finish, comment out temporary respring code

Sticktron 8 years ago
parent
commit
1b8632a0fa
1 changed files with 7 additions and 5 deletions
  1. 7 5
      g0blin/ViewController.m

+ 7 - 5
g0blin/ViewController.m

@@ -186,16 +186,18 @@ static uint64_t kbase;
     
     
     sleep(2);
     sleep(2);
     
     
-    // start launchdaemons ...    
+    // start launchdaemons ...
     LOG("reloading...");
     LOG("reloading...");
     pid_t pid;
     pid_t pid;
     posix_spawn(&pid, "/bin/launchctl", 0, 0, (char**)&(const char*[]){"/bin/launchctl", "load", "/Library/LaunchDaemons/0.reload.plist", NULL}, NULL);
     posix_spawn(&pid, "/bin/launchctl", 0, 0, (char**)&(const char*[]){"/bin/launchctl", "load", "/Library/LaunchDaemons/0.reload.plist", NULL}, NULL);
-    waitpid(pid, 0, 0);
+//    waitpid(pid, 0, 0);
+    
+    sleep(2);
     
     
     // respring
     // respring
-    LOG("respringing...");
-    pid_t pid2;
-    posix_spawn(&pid2, "/usr/bin/killall", 0, 0, (char**)&(const char*[]){"/usr/bin/killall", "-9", "SpringBoard", NULL}, NULL);
+//    LOG("respringing...");
+//    pid_t pid2;
+//    posix_spawn(&pid2, "/usr/bin/killall", 0, 0, (char**)&(const char*[]){"/usr/bin/killall", "-9", "SpringBoard", NULL}, NULL);
 }
 }
 
 
 @end
 @end