]> git.saurik.com Git - cydia.git/commitdiff
Fix Restart SpringBoard on iOS 3 (maybe others?).
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 23 Dec 2013 20:13:56 +0000 (12:13 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 23 Dec 2013 20:13:56 +0000 (12:13 -0800)
MobileCydia.mm

index ed0f35a8bdbe7d25377d3ee863e793f8c2b1f515..754deefa0b74add95f8ba6226fd80165b869ee78 100644 (file)
@@ -5296,6 +5296,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
 
     pid_t pid(ExecFork());
     if (pid == 0) {
+        if (setsid() == -1)
+            perror("setsid");
+
         pid_t pid(ExecFork());
         if (pid == 0) {
             execl("/usr/bin/sbreload", "sbreload", NULL);