summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2010-12-03 02:58:34 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2010-12-03 04:26:13 -0800
commit985d2dffd5fac3d86bf9f76ee972604e20c29f39 (patch)
tree992c6fddde1c14fc3eee549ae6c68422c909032e
parentef8120717c428b90bc0e0f71fe08776b0a361e1d (diff)
Add _trace() calls around system() usage.
-rw-r--r--MobileCydia.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index d5b13ed..ba5118c 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -3508,7 +3508,9 @@ static NSString *Warning_;
- (void) configure {
NSString *dpkg = [NSString stringWithFormat:@"dpkg --configure -a --status-fd %u", statusfd_];
+ _trace();
system([dpkg UTF8String]);
+ _trace();
}
- (bool) clean {
@@ -4442,16 +4444,20 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
break;
case 2:
+ _trace();
goto reload;
case 3:
+ _trace();
goto reload;
reload:
system("/usr/bin/sbreload");
+ _trace();
break;
case 4:
+ _trace();
if (void (*SBReboot)(mach_port_t) = reinterpret_cast<void (*)(mach_port_t)>(dlsym(RTLD_DEFAULT, "SBReboot")))
SBReboot(SBSSpringBoardServerPort());
else
@@ -4504,7 +4510,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
case 4: [close_ setTitle:UCLocalize("REBOOT_DEVICE")]; break;
}
+ _trace();
system("su -c /usr/bin/uicache mobile");
+ _trace();
UpdateExternalStatus(Finish_ == 0 ? 2 : 0);
@@ -8578,7 +8586,9 @@ static _finline void _setHomePage(Cydia *self) {
}
- (void) system:(NSString *)command { _pooled
+ _trace();
system([command UTF8String]);
+ _trace();
}
- (void) applicationWillSuspend {