Re:Dropbox: The Inside Story Of Tech's Hottest Startup
by scott_s on Tuesday October 18, 2011 @10:49PM
(#3128377)
I had, but that's not the situation I had in mind. You can only use ptrace on a child process. You can't use ptrace to attach to, say, another user's process.
Re:Dropbox: The Inside Story Of Tech's Hottest Startup
by mrb on Wednesday October 19, 2011 @03:58AM
(#3129188)
You can attach to any of your processes, that's how debuggers work! Ever used gdb to attach to a running process and debug it on the fly? This is done with ptrace() with the PT_ATTACH flag.
Now ptrace is known to be severly limited on Mac OS X, but there are ways around it: http://uninformed.org/index.cgi?v=4&a=3&p=14
Don't forget ptrace.