From 4cb4bda60d9f567f78ef9294cca42ae8ec368e31 Mon Sep 17 00:00:00 2001 From: Alexander Strange Date: Sat, 31 Jan 2004 17:07:08 +0000 Subject: [PATCH] Just a quick prevention against script kiddies; #ifdefed out because it makes development a lot harder --- main.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main.m b/main.m index ec59c4e..bb0d67c 100755 --- a/main.m +++ b/main.m @@ -7,8 +7,14 @@ // // Poink. #import +#import + +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); } -- 2.20.1