ソースを参照

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

Sticktron 8 年 前
コミット
1b8632a0fa
共有1 個のファイルを変更した7 個の追加5 個の削除を含む
  1. 7 5
      g0blin/ViewController.m

+ 7 - 5
g0blin/ViewController.m

@@ -186,16 +186,18 @@ static uint64_t kbase;
     
     sleep(2);
     
-    // start launchdaemons ...    
+    // start launchdaemons ...
     LOG("reloading...");
     pid_t pid;
     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
-    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