git.ithinksw.org
/
MenuTunes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More bugfixes to networking. Small fix in Preferences. Show Player app launch is...
[MenuTunes.git]
/
main.m
diff --git
a/main.m
b/main.m
index
0eb6e57
..
8c15d17
100755
(executable)
--- a/
main.m
+++ b/
main.m
@@
-5,10
+5,16
@@
// Created by Kent Sutherland on Sun Nov 17 2002.
// Copyright (c) 2002 Kent Sutherland. All rights reserved.
//
// Created by Kent Sutherland on Sun Nov 17 2002.
// Copyright (c) 2002 Kent Sutherland. All rights reserved.
//
-
+// Poink.
#import <Cocoa/Cocoa.h>
#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[])
{
int main(int argc, const char *argv[])
{
+#ifdef MT_RELEASE
+ ptp(PT_DENY_ATTACH,getpid(),NULL,0);
+#endif
return NSApplicationMain(argc, argv);
}
return NSApplicationMain(argc, argv);
}