bash pipe race condition
Kaz Kylheku
920-082-4242@kylheku.com
Wed Oct 4 03:39:00 GMT 2017
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
More information about the Cygwin
mailing list