Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B63E4431FC0; Fri, 27 Nov 2009 22:17:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pfgS3SeO2ONE; Fri, 27 Nov 2009 22:17:34 -0800 (PST) Received: from cworth.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id C532D431FAE; Fri, 27 Nov 2009 22:17:33 -0800 (PST) From: Carl Worth To: Bart Trojanowski , notmuch@notmuchmail.org In-Reply-To: <1259377864-2523-1-git-send-email-bart@jukie.net> References: <1259377864-2523-1-git-send-email-bart@jukie.net> Date: Fri, 27 Nov 2009 22:17:19 -0800 Message-ID: <871vjjtbps.fsf@yoom.home.cworth.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: Bart Trojanowski Subject: Re: [notmuch] [PATCH RFC] debugger: detect presence of ptrace type debuggers X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2009 06:17:34 -0000 --=-=-= On Fri, 27 Nov 2009 22:11:04 -0500, Bart Trojanowski 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iD8DBQFLEMBv6JDdNq8qSWgRAizjAJ4thb8vVNZx+Em307OVlELup9FVigCeJWsY xY6xpn4zbFk+3U2wSKGjjOA= =Lnsx -----END PGP SIGNATURE----- --=-=-=--