From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 87BBF431FD0 for ; Fri, 23 Dec 2011 00:10:42 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 nSeR11nFE0Wu for ; Fri, 23 Dec 2011 00:10:42 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 0172D431FB6 for ; Fri, 23 Dec 2011 00:10:41 -0800 (PST) Received: by wibhq2 with SMTP id hq2so3698027wib.26 for ; Fri, 23 Dec 2011 00:10:40 -0800 (PST) Received: by 10.181.12.43 with SMTP id en11mr30142188wid.6.1324627840826; Fri, 23 Dec 2011 00:10:40 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id fk3sm12619086wbb.10.2011.12.23.00.10.39 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Dec 2011 00:10:39 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id C2E76A031E; Fri, 23 Dec 2011 08:10:37 +0000 (GMT) To: Austin Clements , notmuch@notmuchmail.org Subject: Re: [PATCH] Properly handle short writes in sigint handlers In-Reply-To: <1324584948-8009-1-git-send-email-amdragon@mit.edu> References: <20111222201553.GK10376@mit.edu> <1324584948-8009-1-git-send-email-amdragon@mit.edu> User-Agent: Notmuch/0.10.2+107~ga2d0215 (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Fri, 23 Dec 2011 08:10:33 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Fri, 23 Dec 2011 08:10:42 -0000 --=-=-= Content-Type: text/plain Sorry for being slow. Can you describe the situation in which you expect a write to stderr to be a short write? (Without error.) In that situation, what guarantee is there that the loop you've written will terminate? We're not talking about safeguarding a users' data here - this is a short message to indicate that a tool is terminating due to a signal. I'm concerned that the solution is worse than the problem. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk70N3kACgkQaezQq/BJZRaDPQCeOti54nz/0w+qeyy56G1vjPE4 eyAAnA9N5m404/1TXm17Xb1nQH+H/Na0 =UGTo -----END PGP SIGNATURE----- --=-=-=--