From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.help Subject: Re: asynchronous process management on WinWP; buffering problem? Date: Sat, 15 Apr 2006 05:13:38 +0900 Message-ID: <877j5r3ogd.fsf@catnip.gol.com> References: <10m877fael0h3.1kg7y6ljn4qmb$.dlg@40tude.net> <443fdf5c$1@kcnews01> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145058309 7570 80.91.229.2 (14 Apr 2006 23:45:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2006 23:45:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 15 01:45:07 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FUXyL-0005qw-3w for geh-help-gnu-emacs@m.gmane.org; Sat, 15 Apr 2006 01:45:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUXyK-00023V-AS for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Apr 2006 19:45:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FUUfp-0008N2-0X for help-gnu-emacs@gnu.org; Fri, 14 Apr 2006 16:13:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FUUfm-0008Mg-Cg for help-gnu-emacs@gnu.org; Fri, 14 Apr 2006 16:13:43 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FUUfm-0008MZ-7f for help-gnu-emacs@gnu.org; Fri, 14 Apr 2006 16:13:42 -0400 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FUUfo-0003hz-5c; Fri, 14 Apr 2006 16:13:44 -0400 Original-Received: from 203-216-101-205.dsl.gol.ne.jp ([203.216.101.205] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1FUUfi-0006r4-Rq; Sat, 15 Apr 2006 05:13:38 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 370862F49; Sat, 15 Apr 2006 05:13:38 +0900 (JST) Original-To: help-gnu-emacs@gnu.org System-Type: i686-pc-linux-gnu In-Reply-To: (Lennart Borgman's message of "Fri, 14 Apr 2006 21:11:39 +0200") Original-Lines: 19 X-Abuse-Complaints: abuse@gol.com X-Mailman-Approved-At: Fri, 14 Apr 2006 19:44:50 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34370 Archived-At: Lennart Borgman writes: > I do not understand this so I have some (perhaps stupid) questions: > > - What determines how the buffering works? > - Can a program like Emacs change this behaviour? > - When does the buffering works differently? In a "console"? Is cmd.exe > a "console"? But is it not just another program? In unix-like systems, typically a program will test whether the output stream (stdout) is a terminal or not using something like the "isatty(1)" function (which is a POSIX standard function I believe). If it's a terminal it will use line-buffering, if not, it will use a larger fixed buffer size (which is more efficient). -Miles -- [|nurgle|] ddt- demonic? so quake will have an evil kinda setting? one that will make every christian in the world foamm at the mouth? [iddt] nurg, that's the goal