X-Recipient: archive-cygwin AT delorie DOT 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:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=HmMzouW/dgLHTmBOwMnvIm71cV+nY9IoARbrkrFrXU9 ZzG6vCmVungpWqsavB34oABBb+ayW21JYS4sf+a3ACMjq/p3dk3/1hgmqgdQSsUD hbu4zbaxDnPxW35+DfOnbsfmqjK0NSjuL1HswSePkCV/pCqFbIiD0LUrKDRnXBCM = 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:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=YmiQc4MmTlzVx/yTT3YHstBfMv4=; b=iywWpClfutH2R/XIh j02O3OmsODgd4dRJf4tWazoC3YupUtqFxot7Ms6MzHx43IhywZ/WC6u1XAQeRB4C 9SNGqcqvj0fjp18mT/BIbktA8bd36Js/UktT5wv3b6mCvIhz8leGcgFDWCFSBt8l zq8NR/8qKFOufRg/IRWRsNzcNE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-4.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1200, UD:ne.jp, H*i:9KVhG, Pipes X-HELO: conssluserg-02.nifty.com DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 00UMPVJc028307 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp; s=dec2015msa; t=1580423131; bh=AYqHA45KdQV4n5kDwusjO6j/SXv+xmi42bccDxvc/VY=; h=Date:From:To:Subject:In-Reply-To:References:From; b=D/qf0Us5dr9zT4GyFSZUs+zBhrzbrVqj3KAxuKOtHc3p77vms+LlyZIetVHO3X1Vf M/YkAI6JYnsRloLr04enoSnyD4xWO7q1eNP2yLpWlXyM7XVxPWi+HdXd7A3wNzo3Cq Y4QTM2XnP0I9l/On2v9ehsAIdB9a0RHKTZvFODR7IhRcaaXyLSOAzF/GHWHksGuPkH 7c7GiJA4bkuYhWHkaom+ItMATdLE9hJ27r61DOcrvU0BaChTreBGZhfOmfRPEJni+o D3Vi5hQoOz7n7527ePdf7l3Rl1hYJeDvPkrJuuokzyeHXg2b5WwtTzu5r6T9P14IMu kLZY0x8MwgD3g== Date: Fri, 31 Jan 2020 07:25:36 +0900 From: Takashi Yano To: cygwin AT cygwin DOT com Subject: Re: Pipes bug when spawning non-cygwin processes Message-Id: <20200131072536.da46ccf9cb52b1afdefa2a9a@nifty.ne.jp> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On Thu, 30 Jan 2020 14:03:50 -0500 Edward Lam wrote: > I'm getting a problem where cygwin parent processes spawning non-cygwin > child processes no longer detect when stdin has been closed. Please see the > sample python code at the end where I've isolated the problem. I've got > cygwin's python2 running spawn_bar.py that popen's a native non-cygwin > python2 running bar.py. The steps to reproduce are to run this command > using the two files detailed at the end of this email: > > $ python2 spawn_bar.py > > On Windows 10, this command quits right away as expected when using cygwin > 3.0.7 but hangs when using cygwin 3.1.2 (version number as reported from > running `cygcheck -c cygwin`). > > Looking through the release logs, nothing sticks out except for the change > in 3.1.0 that mentions PTY changes. However, when I originally ran into > this, it wasn't even being done through a terminal but some background > script. > > Any ideas? Probably, this is the same issue as https://www.cygwin.com/ml/cygwin/2020-01/msg00093.html. Please try latest cygwin snapshot. https://cygwin.com/snapshots/ -- Takashi Yano -- 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