From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Incomplete output from "cvs annotate" Date: Tue, 20 Jan 2004 20:45:25 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3405-Tue20Jan2004204524+0200-eliz@elta.co.il> References: <2719-Mon19Jan2004231825+0200-eliz@elta.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1074625078 1191 80.91.224.253 (20 Jan 2004 18:57:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2004 18:57:58 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jan 20 19:57:52 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aj14S-00027w-00 for ; Tue, 20 Jan 2004 19:57:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Aj14R-0000fK-00 for ; Tue, 20 Jan 2004 19:57:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aj12M-0003L4-3U for emacs-devel@quimby.gnus.org; Tue, 20 Jan 2004 13:55:42 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aj11q-0003Ei-1C for emacs-devel@gnu.org; Tue, 20 Jan 2004 13:55:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Aj0yL-0002Ru-1C for emacs-devel@gnu.org; Tue, 20 Jan 2004 13:52:04 -0500 Original-Received: from [192.114.186.24] (helo=legolas.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aj0w9-0001x3-NO for emacs-devel@gnu.org; Tue, 20 Jan 2004 13:49:17 -0500 Original-Received: from zaretski (pns03-206-161.inter.net.il [80.230.206.161]) by legolas.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id BDE61756; Tue, 20 Jan 2004 20:49:01 +0200 (IST) Original-To: Simon Josefsson X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: (message from Simon Josefsson on Tue, 20 Jan 2004 13:01:54 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19362 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19362 > From: Simon Josefsson > Date: Tue, 20 Jan 2004 13:01:54 +0100 > > > > You cannot DTRT to put data from different descriptors together > > because you don't know their relative timing. > > Wouldn't select on both fd's and reading from the first one available, > and then sending that to the buffer, work? Not really, since Emacs only checks if input from some process is available when it is not otherwise busy doing something. On a fast machine, getting to that a second too late can lose you your world. > Surely there is some similar logic somewhere in bash, the kernel or > somewhere. Probably, but the important case is when stdout and stderr are written one after another, but before Emacs gets to see the first one.