From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: emacs gdb subproccess ignores printf (stdout isn't flushed ?) on OS X Date: Sun, 20 Feb 2005 23:51:20 +0100 Message-ID: <8672e8beacc740604ebf814ed7a1a433@Web.DE> References: <16a8b914050220111754b1cb75@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1108940638 2518 80.91.229.2 (20 Feb 2005 23:03:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2005 23:03:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 21 00:03:58 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D307B-0004Xl-9w for geh-help-gnu-emacs@m.gmane.org; Mon, 21 Feb 2005 00:03:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D30O0-0005yf-Th for geh-help-gnu-emacs@m.gmane.org; Sun, 20 Feb 2005 18:21:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D30Nh-0005xu-FQ for help-gnu-emacs@gnu.org; Sun, 20 Feb 2005 18:20:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D30NJ-0005hN-DB for help-gnu-emacs@gnu.org; Sun, 20 Feb 2005 18:20:39 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D30NG-0005d8-91 for help-gnu-emacs@gnu.org; Sun, 20 Feb 2005 18:20:26 -0500 Original-Received: from [217.72.192.224] (helo=smtp06.web.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D2zv9-0007oz-Lm for help-gnu-emacs@gnu.org; Sun, 20 Feb 2005 17:51:23 -0500 Original-Received: from [80.184.132.89] (helo=[192.168.1.2]) by smtp06.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.103 #192) id 1D2zv6-0007Gd-00; Sun, 20 Feb 2005 23:51:20 +0100 In-Reply-To: <16a8b914050220111754b1cb75@mail.gmail.com> Original-To: Mike Garey X-Mailer: Apple Mail (2.619.2) X-Sender: Peter_Dyballa@web.de 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: main.gmane.org gmane.emacs.help:24202 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24202 Am 20.02.2005 um 20:17 schrieb Mike Garey: > I've noticed that when using gdb under the carbon (Apple OS X) version > of GNU Emacs 21.3.50.1, printf statements are not printed until after > the program has terminated, even though the print statements contain a > newline. I can force them to print by modifying my source and adding > "fflush(NULL);" after each printf statement, but I'd like to find out > how to avoid this. Hello! Could you check process-connection-type? Is it nil, i.e.communication via pipes? Then try it with this: (setq process-connection-type t) This makes shell work correct too! -- Greetings Pete The mathematician who pursues his studies without clear views of this matter, must often have the uncomfortable feeling that his paper and pencil surpass him in intelligence. (Ernst Mach)