Clay has an awesome writeup on getting around ptrace() when it’s used as an anti-debugging feature. Nifty!