--- /dev/null
+Return-Path: <jrollins@finestructure.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 1131C431FB6\r
+ for <notmuch@notmuchmail.org>; Sun, 5 Aug 2012 14:41:25 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.29\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id eOsmZiQ3p75n for <notmuch@notmuchmail.org>;\r
+ Sun, 5 Aug 2012 14:41:24 -0700 (PDT)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+ [131.215.239.19])\r
+ by olra.theworths.org (Postfix) with ESMTP id 235AC431FAE\r
+ for <notmuch@notmuchmail.org>; Sun, 5 Aug 2012 14:41:24 -0700 (PDT)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+ by earth-doxen-postvirus (Postfix) with ESMTP id D03EF66E00D0;\r
+ Sun, 5 Aug 2012 14:41:21 -0700 (PDT)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (unknown [76.89.192.57])\r
+ (Authenticated sender: jrollins)\r
+ by earth-doxen-submit (Postfix) with ESMTP id E6C8566E00A6;\r
+ Sun, 5 Aug 2012 14:41:18 -0700 (PDT)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+ id 7CB2E47E; Sun, 5 Aug 2012 14:41:18 -0700 (PDT)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/2] test: emacs: call accept-process-output in\r
+ notmuch-test-wait\r
+In-Reply-To: <1344165182-29246-1-git-send-email-tomi.ollila@iki.fi>\r
+References: <1344165182-29246-1-git-send-email-tomi.ollila@iki.fi>\r
+User-Agent: Notmuch/0.13.2+121~gfda8989 (http://notmuchmail.org) Emacs/23.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 05 Aug 2012 14:41:18 -0700\r
+Message-ID: <87vcgxuidd.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 05 Aug 2012 21:41:25 -0000\r
+\r
+--=-=-=\r
+\r
+On Sun, Aug 05 2012, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
+> notmuch-test-wait called sleep-for in a loop to wait unconditionally 0.1\r
+> seconds while waiting for process to exit.\r
+> accept-process-output returns as soon as there is any data available\r
+> from process, so using it avoids unnecessary fixed delays.\r
+> Both of these functions run process sentinels.\r
+\r
+If this and the following function fix the emacs test crashes on the\r
+buildds then LGTM+++.\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.12 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJQHuh+AAoJEO00zqvie6q8HXQP/16H/kUPLMeKroHzylDksbSl\r
++7IOJQa9jxKtJFM3BmvFtBMFXOob0JHD7ldd/p/GRd0hVMNk/Ur8cG4PdVybs+nq\r
+NLB3RZkIGN+Yzq2JWgAdilqD38auXp81jKQn/TsJZmSN1I8OtFDdKSLvZK7VXdEJ\r
+Z7lDwqGxd/yQonMzJs+40xaAa87BFyetgYI6usIt1cGWGmLA4hrHaGlVmVVcIynf\r
+q0INApfYlejDW+nuv2K3q7bYXfF92tNvLpAM2ji5KAtugJods4MmFjpgS6H/9SQE\r
+smWJ9944Ir8ohFxYJWoL2jXlTz09XRsLlkfgzzJj9lOL+apnwe/r6fPvlDXeHHmJ\r
+MO4dKkP61WVKJ5Ua7Jf6arArOEncD7uekMoX+Tt+VynVfc/NKRXZslIPVOeIJN9D\r
++VSonWll9Z9gnNQBr0NgLrtgFImNVEUt3qa2pbxv/RjJLujbopO84tNdjfjxskCZ\r
+YuxgSMxOWPvq91sXbhnqh49QPLNuN3hHBtBBAtjJI62ZmHyWMgNXJqsb3y10NxNK\r
+4dHTQrY+1SON2Q9dDwnP4hM5BboCDxULYj8Dy17+Rzibl8CM+7SD3uym2Y6FG62z\r
+2T45Ree4a+RN7kAhfeAHPtmbtMfere+2T4UxrgK3FfPMBMJ4OAyJY/YHFhIm/WVU\r
+njwT4v3ZWrAmNrqLyt+5\r
+=9GvR\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r