On Fri, 27 Nov 2009 22:11:04 -0500, Bart Trojanowski <bart@jukie.net> wrote: > According to the internet [1], this is a more reliable way of detecting if > one is under the spell of a debugger. Should work for ptrace, strace, > gdb, etc. Basically anything that uses the ptrace() syscall. Doesn't avoid having side effects in the non-debugger case: $ ./notmuch new No new mail---and that's not much. [1]+ Stopped ./notmuch new $ Not pushed. -Carl