Re: bash pipe race condition

2017-10-04 Thread cyg Simple
On 10/3/2017 11:39 PM, Kaz Kylheku wrote: > 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 i

Re: bash pipe race condition

2017-10-03 Thread Kaz Kylheku
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, i

Re: bash pipe race condition

2017-10-03 Thread cyg Simple
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

bash pipe race condition

2017-10-02 Thread Matthew McGIllis
Windows 7 Service Pack 1 64-Bit Operating System Cygwin $ uname -r 2.9.0(0.318/5/3) $ uname -m x86_64 The basic issue is in a normal windows command shell if I do $ .