[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tail should dereference watched file
From: |
Pádraig Brady |
Subject: |
Re: [PATCH] tail should dereference watched file |
Date: |
Sun, 15 Sep 2013 19:58:49 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
On 09/15/2013 09:58 AM, Bernhard Voelker wrote:
> On 09/14/2013 03:42 AM, Pádraig Brady wrote:
>> So resolving the link will change existing behaviour
>> (with or without inotify), where the symlink is pointed
>> to a new file during the tail -F run.
>>
>> I.E. `tail -F latest.log` will no longer work as expected
>> when latest.log is a symlink which is adjusted like with:
>> ln -nsf new.log latest.log
>>
>> So it seems like we'll need to add both the symlink and
>> target to the inotify list perhaps.
>
> Hmm, this sounds like it could get complicated as well:
> the watch for the symlink target would have to be removed
> again if the symlink is changed.
True. Perhaps we should revert to polling for symlinks?
cheers,
Pádraig.