From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30266 invoked by alias); 2 Oct 2006 02:08:20 -0000 Received: (qmail 30255 invoked by uid 22791); 2 Oct 2006 02:08:19 -0000 X-Spam-Check-By: sourceware.org Received: from mailguard-send.adelaide.edu.au (HELO tosh.services.adelaide.edu.au) (192.43.227.21) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 02 Oct 2006 02:08:18 +0000 Received: from stimpy.services.adelaide.edu.au ([10.0.10.10]) by tosh.services.adelaide.edu.au with ESMTP; 02 Oct 2006 11:38:15 +0930 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AQAAAGsQIEUN X-IronPort-AV: i="4.09,242,1157293800"; d="scan'208"; a="18899317:sNHT23931971" Received: from stimpy.services.adelaide.edu.au (localhost.localdomain [127.0.0.1]) by stimpy.services.adelaide.edu.au (8.13.1/8.13.1) with ESMTP id k9228F9P032580 for ; Mon, 2 Oct 2006 11:38:15 +0930 Received: (from apache@localhost) by stimpy.services.adelaide.edu.au (8.13.1/8.13.1/Submit) id k9228F5M032579 for gcc-help@gcc.gnu.org; Mon, 2 Oct 2006 11:38:15 +0930 Received: from 203-173-35-182.dyn.iinet.net.au (203-173-35-182.dyn.iinet.net.au [203.173.35.182]) by webmail.adelaide.edu.au (IMP) with HTTP for ; Mon, 2 Oct 2006 11:38:15 +0930 Message-ID: <1159754895.4520748f25543@webmail.adelaide.edu.au> Date: Mon, 02 Oct 2006 02:08:00 -0000 From: Owen Lucas To: gcc-help@gcc.gnu.org Subject: RE: problem piping stdout References: <043c01c6e568$167abda0$a501a8c0@CAM.ARTIMI.COM> In-Reply-To: <043c01c6e568$167abda0$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg00012.txt.bz2 yep the fflush (stdout) fixes the problem. I would assume that what some others wrote about changing the buffering mode would probably work too. thanks owen Quoting Dave Korn : > Something's gone funny with the stdout buffering. Maybe related to ICANON. > Try adding a fflush (stdout) after the printf.