Andreas Schwab <address@hidden> wrote:
> This fixes a race in the tail-2/assert test: the file foo may be removed
> before the tail process had the chance to open it.
>
> Andreas.
>
> 2004-03-22 Andreas Schwab <address@hidden>
>
> * tests/tail-2/assert: Avoid race between tail and rm.
>
> --- tests/tail-2/assert
> +++ tests/tail-2/assert
> @@ -30,6 +30,8 @@
> tail_pid=$!
> # Arrange for the tail process to die after 12 seconds.
> (sleep 12; kill $tail_pid) &
> +# Wait for tail to start
> +sleep 1
> rm -f foo
> echo sleeping for 7 seconds...
> sleep 7
Thank you for the patch.
What was the symptom of the failure?
Can you reproduce the problem easily?
Even if I delay the start of the tail command by two seconds,
it doesn't make the test fail.