Re: Problem with named pipes

2018-12-11 Thread Corinna Vinschen
On Dec 11 14:42, Ken Brown wrote: > On 1/8/2016 3:50 PM, Corinna Vinschen wrote: > > On Dec 25 16:39, Ken Brown wrote: > >> I've noticed a difference between Cygwin and Linux involving named pipes. > >> I > >> don't know if this a bug or simply a difference. > >> > >> Consider the following two s

Re: Problem with named pipes

2018-12-11 Thread Dan Kegel
On Tue, Dec 11, 2018 at 6:42 AM Ken Brown wrote: > > Very tricky problem. The FIFO code falls over its own feet trying to > > handle more than one writer (exec 7> is the first, echo blah is the > > second writer). Sigh. This code needs a thorough rewrite... > > I'm coming back to this thread af

Re: Problem with named pipes

2018-12-11 Thread Ken Brown
On 1/8/2016 3:50 PM, Corinna Vinschen wrote: > On Dec 25 16:39, Ken Brown wrote: >> I've noticed a difference between Cygwin and Linux involving named pipes. I >> don't know if this a bug or simply a difference. >> >> Consider the following two scripts: >> >> $ cat fifo1.sh >> #!/bin/sh >> set -x

Re: Problem with named pipes

2016-01-08 Thread Corinna Vinschen
On Dec 25 16:39, Ken Brown wrote: > I've noticed a difference between Cygwin and Linux involving named pipes. I > don't know if this a bug or simply a difference. > > Consider the following two scripts: > > $ cat fifo1.sh > #!/bin/sh > set -x > rm -f foo > mkfifo foo > exec 7>foo > echo blah > f