1.1 --- a/ExceptionUtils.m Sat May 24 13:24:33 2008 -0700
1.2 +++ b/ExceptionUtils.m Wed Jul 16 10:50:34 2008 -0700
1.3 @@ -166,7 +166,6 @@
1.4 // From: <http://lists.apple.com/archives/Xcode-users/2004/Feb/msg00241.html>
1.5 int mib[4];
1.6 size_t bufSize = 0;
1.7 - int local_error = 0;
1.8 struct kinfo_proc kp;
1.9
1.10 mib[0] = CTL_KERN;
1.11 @@ -175,8 +174,8 @@
1.12 mib[3] = getpid();
1.13
1.14 bufSize = sizeof (kp);
1.15 - if ((local_error = sysctl(mib, 4, &kp, &bufSize, NULL, 0)) < 0) {
1.16 - Warn(@"Failure calling sysctl");
1.17 + if (sysctl(mib, 4, &kp, &bufSize, NULL, 0) < 0) {
1.18 + Warn(@"Error %i calling sysctl",errno);
1.19 return NO;
1.20 }
1.21 return (kp.kp_proc.p_flag & P_TRACED) != 0;