Re: [PATCH v2] test: Unset ALTERNATE_EDITOR before running emacsclient
[notmuch-archives.git] / 1d / ad95d55a272ab51de3afd9d4ae79e610af825c
1 Return-Path: <amdragon@mit.edu>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 6B876431FD0\r
6         for <notmuch@notmuchmail.org>; Sat, 24 Dec 2011 16:37:47 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id qnyl769rCpqY for <notmuch@notmuchmail.org>;\r
16         Sat, 24 Dec 2011 16:37:47 -0800 (PST)\r
17 Received: from dmz-mailsec-scanner-7.mit.edu (DMZ-MAILSEC-SCANNER-7.MIT.EDU\r
18         [18.7.68.36])\r
19         by olra.theworths.org (Postfix) with ESMTP id EFB9B431FB6\r
20         for <notmuch@notmuchmail.org>; Sat, 24 Dec 2011 16:37:46 -0800 (PST)\r
21 X-AuditID: 12074424-b7fae6d000000906-ac-4ef6705ad774\r
22 Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
23         by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 7E.6E.02310.A5076FE4; Sat, 24 Dec 2011 19:37:46 -0500 (EST)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id pBP0bkPM002719; \r
27         Sat, 24 Dec 2011 19:37:46 -0500\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
29         (authenticated bits=0)\r
30         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
31         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pBP0biaB027329\r
32         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);\r
33         Sat, 24 Dec 2011 19:37:45 -0500 (EST)\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
35         (envelope-from <amdragon@mit.edu>)\r
36         id 1Rec6s-00049M-OY; Sat, 24 Dec 2011 19:38:42 -0500\r
37 Date: Sat, 24 Dec 2011 19:38:42 -0500\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: David Edmondson <dme@dme.org>\r
40 Subject: Re: [PATCH] Properly handle short writes in sigint handlers\r
41 Message-ID: <20111225003842.GA15906@mit.edu>\r
42 References: <20111222201553.GK10376@mit.edu>\r
43         <1324584948-8009-1-git-send-email-amdragon@mit.edu>\r
44         <cunhb0rvhc6.fsf@hotblack-desiato.hh.sledj.net>\r
45 MIME-Version: 1.0\r
46 Content-Type: text/plain; charset=us-ascii\r
47 Content-Disposition: inline\r
48 In-Reply-To: <cunhb0rvhc6.fsf@hotblack-desiato.hh.sledj.net>\r
49 User-Agent: Mutt/1.5.21 (2010-09-15)\r
50 X-Brightmail-Tracker:\r
51  H4sIAAAAAAAAA+NgFupnleLIzCtJLcpLzFFi42IR4hTV1o0q+OZn8H6TlMW+O1uYLK7fnMns\r
52         wOSx6/lfJo9nq24xBzBFcdmkpOZklqUW6dslcGV8XMJR8IujYsqlhUwNjD3sXYycHBICJhJf\r
53         dx1mgrDFJC7cW8/WxcjFISSwj1Hi1+QvUM4GRol1D9YyQzgnmSRmXb/LDuEsYZS4fH4GM0g/\r
54         i4CqxMXlrYwgNpuAhsS2/cvBbBEBRYn/31aA7WMWkJb49rsZaB8Hh7CAi8TBE1EgYV4BHYmj\r
55         254yQcycwiixcPFyNoiEoMTJmU9YIHq1JG78ewnWCzJn+T8OkDCngI1E15s1YCWiAioSU05u\r
56         Y5vAKDQLSfcsJN2zELoXMDKvYpRNya3SzU3MzClOTdYtTk7My0st0jXXy80s0UtNKd3ECApr\r
57         dheVHYzNh5QOMQpwMCrx8DYu/eInxJpYVlyZe4hRkoNJSZQ3P/+bnxBfUn5KZUZicUZ8UWlO\r
58         avEhRgkOZiURXs0koHLelMTKqtSifJiUNAeLkjivhtY7PyGB9MSS1OzU1ILUIpisDAeHkgTv\r
59         c5ChgkWp6akVaZk5JQhpJg5OkOE8QMMPgNTwFhck5hZnpkPkTzHqcixeteEsoxBLXn5eqpQ4\r
60         716QIgGQoozSPLg5sHT0ilEc6C1h3uUgVTzAVAY36RXQEiagJTFGIB8UlyQipKQaGD26LJw1\r
61         PQw1jWR49yV2yE1hvr84dWJ08tT4us9/c/NSmLvWtN089v1CTZX0eXWZxPQ0MUWDGcuzP+5f\r
62         9D5A/Lpm/IavzzyjfYN+bD5a9yr05bHUf9eu9a5Wqm3f+byjxVk+QffTl4RszsV1R2qXir0o\r
63         Pah4sXt2TPH78+U31D1fMrO6WH1pUWIpzkg01GIuKk4EADjf7HwiAwAA\r
64 Cc: notmuch@notmuchmail.org\r
65 X-BeenThere: notmuch@notmuchmail.org\r
66 X-Mailman-Version: 2.1.13\r
67 Precedence: list\r
68 List-Id: "Use and development of the notmuch mail system."\r
69         <notmuch.notmuchmail.org>\r
70 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
71         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
72 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
73 List-Post: <mailto:notmuch@notmuchmail.org>\r
74 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
75 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
77 X-List-Received-Date: Sun, 25 Dec 2011 00:37:47 -0000\r
78 \r
79 Quoth David Edmondson on Dec 23 at  8:10 am:\r
80 > Sorry for being slow.\r
81\r
82 > Can you describe the situation in which you expect a write to stderr to\r
83 > be a short write? (Without error.)\r
84 \r
85 If the PTY buffer is nearly full because, say, my terminal emulator is\r
86 a little behind or my SSH session is slow, I believe POSIX allows this\r
87 to be a short write (though Linux appears to treat PTYs like pipes and\r
88 will block rather than doing a short write, so it's completely\r
89 possible I'm misinterpreting POSIX).\r
90 \r
91 > In that situation, what guarantee is there that the loop you've written\r
92 > will terminate?\r
93 \r
94 There isn't, but for the same reason there's also no guarantee that a\r
95 single write will terminate.\r
96 \r
97 > We're not talking about safeguarding a users' data here - this is a\r
98 > short message to indicate that a tool is terminating due to a signal.\r
99 > I'm concerned that the solution is worse than the problem.\r
100 \r
101 As a user I'd be confused to see just part of the "Stopping" message\r
102 jammed in the middle of other output, but you're definitely right that\r
103 the consequences of this would not extend beyond a little bit of\r
104 harmless confusion.\r