coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fix races in tail tests and in tail itself


From: Bernhard Voelker
Subject: Re: fix races in tail tests and in tail itself
Date: Mon, 11 May 2015 23:40:16 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

On 05/11/2015 03:53 PM, Pádraig Brady wrote:
> The 5 patch set is attached.

Really nice work!

Minor nits:

> Subject: [PATCH 3/5] tests: cleanup background processes upon interruption

tests/tail-2/append-only.sh: The cleanup_ function would only
kill the last tail background process.  I suggest calling
cleanup_ inside the for-loop.


> Subject: [PATCH 4/5] tail: fix inotify startup races

> --- /dev/null
> +++ b/tests/tail-2/inotify-race2.sh
...
> +# Run "tail -f file", stopping to replace with a new file before

s/-f/-F/

> Subject: [PATCH 5/5] tail: consistently output all data for truncated files
...
> (recheck): Add a FIXME for the related issue where tail may loses

s/loses/lose/

> --- /dev/null
> +++ b/tests/tail-2/truncate.sh
...
> +    # Wait up to 12.7s for tail to start
> +    echo x > $n

+ echo x
./tests/tail-2/truncate.sh: line 43: $n: ambiguous redirect

'n' is not set - I guess this is a testing reminiscence?

Thanks & have a nice day,
Berny



reply via email to

[Prev in Thread] Current Thread [Next in Thread]