bug-coreutils
[Top][All Lists]
Advanced

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

Re: tail aborts while following by name if using inotify


From: Jim Meyering
Subject: Re: tail aborts while following by name if using inotify
Date: Tue, 29 Dec 2009 16:01:48 +0100

Jim Meyering wrote:
...
> +# Wait up to 2s for the buggy tail to die,
> +# or for the "tail: `1' has appeared;  following end of new file" output
> +dead=0
> +for i in $(seq 10); do
> +  kill -0 $pid || { dead=1; break; }
> +  grep 'has appeared;' out > /dev/null && break
> +done

I've re-added the sleep above, so that the comment is still accurate:

for i in $(seq 10); do
  kill -0 $pid || { dead=1; break; }
  grep 'has appeared;' out > /dev/null && break
  sleep .2
done




reply via email to

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