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:to:subject:mime-version:content-type :content-transfer-encoding:date:from:in-reply-to:references :message-id; q=dns; s=default; b=e+Zm1MOIvPxdmihPcfQFp49Et7Joe4I C3nqy29omrP+BXLO1MLqC6nJKDNfk9vQl6rr5gAwnrQrlBv12VuZL04wb2O1UDDc IheOjejqldYAoophnOLyVRVrQ6PjyMMf5EKmY2UTpkCjMpu03/+gbqnOhq3Z7MjH CVEK9vqTig54= 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:to:subject:mime-version:content-type :content-transfer-encoding:date:from:in-reply-to:references :message-id; s=default; bh=0h6bs5LU459RkDRhMjMrAadK4Ts=; b=wtmxH NW4JmhIJRXpyI7qunf01H4N0tjsq2sGYsz5VVxO6FGgj6GU3XZ3u4vCiukVXFGBk zxRbESw+kAuWA+f82VeUz6Rx4qc81BdvR6QmXIdt4koUSkTVQDxcNo/jUvk0FreL VhKO94QVMqmxOIeEhqMTvyuOhxhwQ/kzSkuRaw= 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-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.1 required=5.0 tests=AWL,BAYES_40,FROM_STARTS_WITH_NUMS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=cyg, PTY, pty, simple.c X-HELO: smtp-out-so.shaw.ca X-Authority-Analysis: v=2.2 cv=e552ceh/ c=1 sm=1 tr=0 a=95A0EdhkF1LMGt25d7h1IQ==:117 a=95A0EdhkF1LMGt25d7h1IQ==:17 a=IkcTkHD0fZMA:10 a=SMorJkV_YP8A:10 a=02M-m0pO-4AA:10 a=vYxZw9q9pxtJsLTO4vEA:9 a=QEXdDO2ut3YA:10 To: cygwin AT cygwin DOT com Subject: Re: bash pipe race condition X-PHP-Originating-Script: 501:rcmail.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Tue, 03 Oct 2017 20:39:46 -0700 From: Kaz Kylheku <920-082-4242 AT kylheku DOT com> In-Reply-To: <33e9d184-03b1-5fa5-4c1a-0cca19571a3a@gmail.com> References: <33e9d184-03b1-5fa5-4c1a-0cca19571a3a AT gmail DOT com> Message-ID: <3b4549f8494b5b4062e90eecc1dfc356@mail.kylheku.com> X-Sender: 920-082-4242 AT kylheku DOT com User-Agent: Roundcube Webmail/0.9.2 X-CMAE-Envelope: MS4wfONlhoNmonojPofZUvQCXndo66BT0K5fejnlNCp+tuIz6Tmv2ET+Py9ETOxXbAF7BcwOHFpRlPAnoajZP8iMnwpDzFJISKsDxG7/WdziIWEl63xaMXuo vMuge5m+YgI0Wqcmn6PIZh2Bt2KfyKoG9YxkZ2za0QmEBbddMb9hDjyR X-IsSubscribed: yes On 03.10.2017 05:56, cyg Simple wrote: > On 10/2/2017 9:06 PM, Matthew McGIllis wrote: >> If I use the same code from bash I get: >> >> $ ./input.exe | ./simple.exe >> line1 >> <—— Hangs indefinitely until you kill it or ctrl-c >> >> Some how if input has a delay between its line output then things will >> get hung, if you remove the sleep from the input things work, add the >> sleep in it fails. >> >> >> input.exe is generate from input.vb using: vbc input.vb [ ... ] > > It is a known issue of the PTY emulation between a Cygwin runtime and a > Windows runtime enabled app. It just cannot be fixed. You're even > lucky that it works in the Windows command shell. Lucky? Are VB console apps known to have unreliable piping when used from the Windows command processor? > Either convert > simple.vb to simple.c and use Cygwin's gcc to build it or create a > Windows runtime version of input.exe. Isn't that what "input.exe is generate[d] from input.vb using: vbc input.vb" is referring to? -- 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