From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: Re: M-x compile output sometimes delayed Date: Fri, 05 Apr 2002 08:36:15 +0300 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <3CAD37CF.479E2128@is.elta.co.il> References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1017985334 21808 127.0.0.1 (5 Apr 2002 05:42:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 5 Apr 2002 05:42:14 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16tMUH-0005fd-00 for ; Fri, 05 Apr 2002 07:42:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16tMUD-0005iJ-00; Fri, 05 Apr 2002 00:42:09 -0500 Original-Received: from mailbox3.ucsd.edu ([132.239.1.55]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16tMSg-0005bt-00 for ; Fri, 05 Apr 2002 00:40:34 -0500 Original-Received: from mail.fu-berlin.de (mail.fu-berlin.de [160.45.11.165]) by mailbox3.ucsd.edu (8.12.1/8.12.1) with ESMTP id g355eWso019869 for ; Thu, 4 Apr 2002 21:40:33 -0800 (PST) Original-Received: by mail.fu-berlin.de (Smail3.2.0.98) from Curry.ZEDAT.FU-Berlin.DE (160.45.10.36) with esmtp id ; Fri, 5 Apr 2002 07:40:32 +0200 (MEST) Original-Received: by Curry.ZEDAT.FU-Berlin.DE (Smail3.2.0.98) from news.fu-berlin.de with bsmtp id ; Fri, 5 Apr 2002 07:40:31 +0200 (MEST) Original-To: gnu-emacs-bug@moderators.isc.org Original-Path: 192.116.55.139!not-for-mail Original-Newsgroups: gnu.emacs.bug Original-Lines: 17 X-Orig-NNTP-Posting-Host: 192.116.55.139 X-Orig-X-Trace: fu-berlin.de 1017985231 30094304 192.116.55.139 (16 [61365]) X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:405 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:405 Dan Jacobson wrote: > > In makefile I have > z: > set -x;until test $$((retrys++)) -gt 9; do sleep 4;done > > I do M-x compile. I see the output in fits and starts, not every 4 > seconds. Sometimes it comes out line by line, sometimes it takes me > hitting say even the Shift key to stimulate it into spitting out > output. Odd, as my processor is 99% idle. I think you forget about I/O buffering. Emacs runs subordinate processes via a pipe, and pipes are buffered by the system. In addition, Emacs only checks whether there was input from a subprocess when it's not busy doing other things, so that could account for additional delays.