From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by sourceware.org (Postfix) with ESMTPS id A95FF3857C63 for ; Tue, 11 Aug 2020 09:38:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A95FF3857C63 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=corinna-cygwin@cygwin.com Received: from calimero.vinschen.de ([217.91.18.234]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mm9NA-1kVvmD3UHY-00i992 for ; Tue, 11 Aug 2020 11:38:01 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 04FD4A80926; Tue, 11 Aug 2020 11:37:59 +0200 (CEST) Date: Tue, 11 Aug 2020 11:37:58 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Race condition hangs on multiple mintty/tcsh? Brad Wetmore Message-ID: <20200811093758.GF53219@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <1988bd34-7a17-e70f-bf23-0044f30c8687@towo.net> <1193403444.420395.1596669799506@mail.yahoo.com> <3d594543-c992-a22c-4631-f786cf34f76b@towo.net> <20200811135948.959c10de83b8ccfa35f4281a@nifty.ne.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200811135948.959c10de83b8ccfa35f4281a@nifty.ne.jp> X-Provags-ID: V03:K1:IU9yZLEhS8kHCY2g4/UK9WBAxdRdIKLuADH5+upexFKkp+X6/lN IQufdcICjE8oe96bxL51rW0h3P+kTr1VMlmjHdiGTkd36Qw7Dvd0y4j6ahgnQxkJh3bc4uG V/YiWbWLFKMXa4jYCZNHGtc7wBZGiYhpo/2s6DKY0QPOs/3W5QfE9aRFEUdqI8b/Nnp5Erq Zw/3x+27SVtUfbdDqLK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_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Aug 2020 09:38:06 -0000 On Aug 11 13:59, Takashi Yano via Cygwin wrote: > Hi Thomas, > > On Thu, 6 Aug 2020 15:31:24 +0200 > Thomas Wolff wrote: > > Am 06.08.2020 um 13:46 schrieb Thomas Wolff: > > > Am 06.08.2020 um 01:23 schrieb Kevin Schnitzius via Cygwin: > > >> On Wednesday, August 5, 2020, 06:56:48 PM EDT, Thomas Wolff > > >> wrote: > > >>> Am 04.08.2020 um 12:02 schrieb Thomas Wolff: > > >>>> Am 04.08.2020 um 00:13 schrieb Brad Wetmore via Cygwin: > > >>>>> Hi, > > >>>>> > > >>>>> I generally kick off multiple (10) mintty sessions, and place them > > >>>>> around the screen. > > >>>>> [...] > > > I could reproduce one case of one of three terminals being > > > unresponsive also with xterm. > > And it also happens if I drop select() from mintty (and use just > > non-blocking read()). > > > Does anybody familiar with pty/select or recent changes have any idea? > > I looked into this problem. After much struggle, I think > I have found a workaround for this issue. > > I am not sure why this solves the issue at all, however, > this works for me. > > Could you please test a patch attached? Shall I commit the patch and create a developer snapshot for testing? Corinna -- Corinna Vinschen Cygwin Maintainer