summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-02 16:00:57 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-03 01:19:13 -0800
commitbb0fe3c941d750de3587298bee36d07ff92debda (patch)
tree1fc15adf4beb9c27bbeaba810ac0443a990d133f /MobileCydia.mm
parent0e371502fd57d5754c54d36d7ec29e8ef5bc6ae1 (diff)
Use reboot2() instead of system("reboot").
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 6121e6e..9596309 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -102,6 +102,7 @@
#include <sys/sysctl.h>
#include <sys/param.h>
#include <sys/mount.h>
+#include <sys/reboot.h>
#include <fcntl.h>
#include <notify.h>
@@ -4452,7 +4453,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
if (void (*SBReboot)(mach_port_t) = reinterpret_cast<void (*)(mach_port_t)>(dlsym(RTLD_DEFAULT, "SBReboot")))
SBReboot(SBSSpringBoardServerPort());
else
- system("reboot");
+ reboot2(RB_AUTOBOOT);
break;
}
}