From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14736 invoked by alias); 8 Jan 2015 14:27:11 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 14723 invoked by uid 89); 8 Jan 2015 14:27:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-pd0-f172.google.com Received: from mail-pd0-f172.google.com (HELO mail-pd0-f172.google.com) (209.85.192.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 08 Jan 2015 14:27:09 +0000 Received: by mail-pd0-f172.google.com with SMTP id y13so11513819pdi.3 for ; Thu, 08 Jan 2015 06:27:08 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=AsG83LBwJRYGyyABOaLq6kGuN6sx12WQDbaMl7gEDZQ=; b=kGQb01Pb2P4PRTpi94EgIAOYtKsdWonlOwxRPwTAGlGF3bNxUO26nMz5us1vJHd3Kp 84z70EoSh8gw+dPW5ZRo8YXJc2swK4qK9vOyclZa6d8eec+A9Z6Vf0ZUD6ldoIZy+/ah LIx2WMNPS7W3wPNwQnLe5T3YYySi0F6kK1BJWpFDgMy+p7DsEoRz5Oqe6BNlww5LNNRt HoIF3QPKQsIUuqXrT/QRL5VDVgUuaADC891kzQOdfq7sMuuB/YSde4CQtO+JsmxJsBL1 a/NZEd6lrNL9KLSBRfUh7gOn6Xw/tYxT75msmqorWjEbEtQ1ZBf3eb7ZC+AUR61fU4ZC VS2Q== X-Gm-Message-State: ALoCoQlTx21bSaKI9Q1K45pve2bGGfA/FCoLxuwc1ICf4ZK6VFDZOpa+PWkGv1MggeHeuxOdXxNW X-Received: by 10.68.238.234 with SMTP id vn10mr15145154pbc.140.1420727227914; Thu, 08 Jan 2015 06:27:07 -0800 (PST) MIME-Version: 1.0 Received: by 10.70.22.145 with HTTP; Thu, 8 Jan 2015 06:26:47 -0800 (PST) In-Reply-To: <83wq4x5pgy.fsf@gnu.org> References: <1420689048-23538-1-git-send-email-patrick@parcs.ath.cx> <831tn5760g.fsf@gnu.org> <83wq4x5pgy.fsf@gnu.org> From: Patrick Palka Date: Thu, 08 Jan 2015 14:27:00 -0000 Message-ID: Subject: Re: [PATCH] TUI: rewrite tui_query_hook() To: Eli Zaretskii Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2015-01/txt/msg00194.txt.bz2 On Thu, Jan 8, 2015 at 9:14 AM, Eli Zaretskii wrote: >> From: Patrick Palka >> Date: Thu, 8 Jan 2015 08:42:38 -0500 >> Cc: gdb-patches@sourceware.org >> >> > Given the latest discussions about buffering, don't you need to call >> > wrefresh after the second tui_puts? >> >> I have been using this patch for a few months locally and have not >> seen any buffering issues. The recently-mentioned issues are mostly >> Windows-related, aren't they? I can add a wrefresh() if that is >> what's needed to prevent potential buffering issues. > > I think we shouldn't assume that stdout gets flushed when a program > reads from stdin. That sounds like a good rule of thumb.