X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4FC30385842F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1636469321; bh=cQxFO5mZdAYWhJ3RwbSRQeFCVdVloXDWe7kF/F3moeM=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Di7zInwOnBDzJCkaUVLbOHBIAhVkCV96bbi0aYFTm0rtfFnD6J3J/hS/fuLVtCJjh ypNBQgTRI3dKs1fb8EsxMZ4ZQ/Rp0gUAE2v9U30BdiH7WwQOyglQogl73jA1pSDk9+ fcrEZ3sieR6LV+bu5yWlSzLaQZtyRw6ZlF2/Vy5E= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 592193858D39 To: Ken Brown Subject: Re: Another pipe-related problem? References: <05c4180e-396b-4af3-ac0c-2ab8125df17e AT cornell DOT edu> Date: Tue, 09 Nov 2021 14:47:26 +0000 In-Reply-To: (Ken Brown's message of "Tue\, 9 Nov 2021 09\:11\:28 -0500") Message-ID: User-Agent: Gnus/5.101 (Gnus v5.10.10) XEmacs/21.5-b34 (linux) MIME-Version: 1.0 X-Edinburgh-Scanned: at loire.is.ed.ac.uk X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT 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: , From: "Henry S. Thompson via Cygwin" Reply-To: "Henry S. Thompson" Cc: cygwin AT cygwin DOT com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" [private reply -- it's not exactly a private repo, but it's really not ready for prime-time with users expecting to be able to raise issues etc.] Ken Brown writes: > ... > I was aware that the bitbucket repo didn't exist, because I tried to get the > sources there. But I didn't know about the fork. Please point me to it, or > just make a tarball available to me somehow. https://foss.heptapod.net/xemacs >> ... > I'll have to reproduce the hang myself in order to test this (or > maybe you could test it), but I now have a new guess: If the read > call above keeps failing with EINTR, then we're in an infinite loop. > This could happen because of the following code in > fhandler_pipe::raw_read: > > DWORD waitret = cygwait (read_mtx, timeout); > switch (waitret) > { > case WAIT_OBJECT_0: > break; > case WAIT_TIMEOUT: > set_errno (EAGAIN); > len = (size_t) -1; > return; > default: > set_errno (EINTR); > len = (size_t) -1; > return; > } > Let's wait and see what Takashi says -- I see from github blame that was introduced between 3.2 and 3.3.0, so certainly _could_ be the culprit. I've never tried to build my own Cygwin... Thanks, ht -- Henry S. Thompson, School of Informatics, University of Edinburgh 10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440 Fax: (44) 131 650-4587, e-mail: ht AT inf DOT ed DOT ac DOT uk URL: http://www.ltg.ed.ac.uk/~ht/ [mail from me _always_ has a .sig like this -- mail without it is forged spam] The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple