git.ithinksw.org
/
MenuTunes.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60a701d
)
Just a quick prevention against script kiddies; #ifdefed out because it makes develop...
author
Alexander Strange
<astrange@ithinksw.com>
Sat, 31 Jan 2004 17:07:08 +0000
(17:07 +0000)
committer
Alexander Strange
<astrange@ithinksw.com>
Sat, 31 Jan 2004 17:07:08 +0000
(17:07 +0000)
main.m
patch
|
blob
|
history
diff --git
a/main.m
b/main.m
index
ec59c4e
..
bb0d67c
100755
(executable)
--- a/
main.m
+++ b/
main.m
@@
-7,8
+7,14
@@
//
// Poink.
#import <Cocoa/Cocoa.h>
+#import <sys/ptrace.h>
+
+static const int (*ptp)(int,int,caddr_t,int) = ptrace;
int main(int argc, const char *argv[])
{
+#ifdef RELEASE
+ ptp(PT_DENY_ATTACH,getpid(),NULL,0);
+#endif
return NSApplicationMain(argc, argv);
}