X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=OfpxhtH6uYWK/8EA
	HOXPmy0SGg0zrYlcyAzD5g0Jfpa99ZoBqZhwB+v+PIY6eojsw+AliVyYbSyZfbqI
	8vYM8MPkGYaOi/hKTMLksdw+psdlYfP7Pe0AEW21BgYaWegJgNJ6jqqfODgvrP3C
	/O3AMIRzIFQd+IsW2eShJTMiD40=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=jd6/IdurOtx4zy4fdrat68
	EU3Ok=; b=B1HPXnLDU1rpZWvER5fOcNKHqN6eeKKLu3/cneRakVOSRh7fF+8KgP
	/W2FIS2W8Qu9yaeuH8M4EqrclEKvg6tycjD9s08XpCgXb2uHwqbJsyihCIZFrk15
	9na/f2caxvOzS3DyOsaAVYskdRtgMHq9HirSGSkigj8qLwyi3F7Vg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:1345, H*MI:sk:aad3bfc, H*i:sk:aad3bfc, H*f:sk:aad3bfc
X-HELO: limerock03.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Subject: Re: gdb pty problem [Was: emacs gud-interface is not updated after gdb command execution (maybe because of incomplete output from gdb)]
To: cygwin@cygwin.com
References: <466943424.37628.394d161a-7219-415d-a659-0f774811ad2d.open-xchange@email.1und1.de> <44459aa0-4381-2368-ab63-5dffc26f3344@cornell.edu> <e29d08b0-aaed-46ea-a4eb-960b1e462692@cornell.edu> <a50d8bef-cc9b-3b35-8812-b26360591662@cornell.edu> <20160531094115.GE24015@calimero.vinschen.de> <34c9cf10-4930-a017-92fc-fd56171671b1@cornell.edu> <9403d1d8-21d1-bf7e-dddc-d77b42e4795d@cornell.edu> <20160601142804.GG11431@calimero.vinschen.de> <aad3bfc2-c6a5-3299-2e66-90892286753b@cornell.edu>
From: Ken Brown <kbrown@cornell.edu>
Message-ID: <91397a76-1265-1cda-45e2-573e63b48fa3@cornell.edu>
Date: Wed, 1 Jun 2016 11:22:25 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0
MIME-Version: 1.0
In-Reply-To: <aad3bfc2-c6a5-3299-2e66-90892286753b@cornell.edu>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-PMX-Cornell-Gauge: Gauge=XXXXX
X-IsSubscribed: yes

On 6/1/2016 10:33 AM, Ken Brown wrote:
> On 6/1/2016 10:28 AM, Corinna Vinschen wrote:
>> Hi Ken,
>>
>> On Jun  1 09:02, Ken Brown wrote:
>>> On 6/1/2016 8:51 AM, Ken Brown wrote:
>>>> On 5/31/2016 5:41 AM, Corinna Vinschen wrote:
>>>>> Any chance you could bisect Cygwin to help finding the culprit?
>>>>
>>>> The culprit is
>>>>
>>>> commit 252a07b0ad3353abcd0fcd9b1b65ff977acd679e
>>>> Author: Takashi Yano <takashi.yano@nifty.ne.jp>
>>>> Date:   Fri Apr 3 13:07:35 2015 +0900
>>>>
>>>>    Cygwin hangs up if several keys are typed during outputting a lot of
>>>> texts.
>>>>
>>>>        * fhandler_tty.cc (fhandler_pty_slave::read): Change
>>>> calculation of
>>>>        "readlen" not to use "bytes_in_pipe" value directly.
>>>>
>>>>
>>>> Reverting that commit fixes the problem.
>>>
>>> Unfortunately, all kinds of other things break.  For example, emacs
>>> exits
>>> immediately, ls produces no output,....
>>
>> Are you sure?  I just tried it myself and ls as well as emacs work
>> fine for me.
>
> It works for me now too.  I must have done something wrong the first
> time I tried.

And this also fixes the original problem in emacs that started the thread:

   https://www.cygwin.com/ml/cygwin/2016-05/msg00318.html

Ken


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

