Hi Stephane,
* Stephane Chazelas wrote on Tue, Oct 28, 2008 at 11:26:18AM CET:
>
> I have to admit I would have thought the code above to be safe
> as well and I wonder if it's the same on all systems. But I can
> reproduce the problem on Linux. As far as I can tell, if you
> don't use O_APPEND,
On Mon, Oct 27, 2008 at 11:12:24PM +0100, Ralf Wildenhues wrote:
[...]
> --- foo.sh ---
> #! /bin/sh
>
> do_work ()
> {
> sleep 1
> echo "work $i is done"
> }
>
> for i in 1 2 3 4 5 6 7 8 9 10
> do
> (
> do_work $i
> ) &
> done
> wait
>
> --- bar.sh ---
> #! /bin/sh
>
> ./foo.sh > s