Re: [notmuch] [PATCH RFC] debugger: detect presence of ptrace type debuggers

Subject: Re: [notmuch] [PATCH RFC] debugger: detect presence of ptrace type debuggers

Date: Fri, 27 Nov 2009 22:17:19 -0800

To: Bart Trojanowski, notmuch@notmuchmail.org

Cc: Bart Trojanowski

From: Carl Worth


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
part-000.sig (application/pgp-signature)

Thread: