[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] tail should dereference watched file
From: |
Bernhard Voelker |
Subject: |
Re: [PATCH] tail should dereference watched file |
Date: |
Sun, 15 Sep 2013 10:58:55 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
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.
Have a nice day,
Berny