On Fri, 27 Nov 2009 22:11:04 -0500, Bart Trojanowski <bart at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<http://notmuchmail.org/pipermail/notmuch/attachments/20091127/68b5e759/attachment.pgp>

Reply via email to