[notmuch] [PATCH RFC] debugger: detect presence of ptrace type debuggers
Carl Worth
cworth at cworth.org
Fri Nov 27 22:17:19 PST 2009
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>
More information about the notmuch
mailing list