[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tail is reading already rotated file.
From: |
Pádraig Brady |
Subject: |
Re: tail is reading already rotated file. |
Date: |
Thu, 05 Feb 2015 22:57:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
On 04/02/15 10:09, 최종우 wrote:
> To reproduce the problem, you can run this script. It exhausted inotify
> watches. (in order to get the result more quickly, decrease the value of
> max_user_watches.)
>
> let count=0; echo $count>>a.log; ./tail -F a.log & while true; do mv a.log
> a.log.$count; let count=count+1; echo $count>>a.log; done
>
> I tested this problem in coreutils 8.4 and 8.23.
Proposed patch to fix this is attached.
thanks,
Pádraig.
tail-inotify-resources.patch
Description: Text Data