coreutils
[Top][All Lists]
Advanced

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

Re: Unexpected behavior of 'tail --follow=name' on special file via syml


From: Pádraig Brady
Subject: Re: Unexpected behavior of 'tail --follow=name' on special file via symlink
Date: Tue, 31 Jan 2023 21:47:43 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Thunderbird/109.0

On 31/01/2023 19:48, Glenn Golden wrote:
Thanks, Pádraig.

With the above patch (applied manually to coreutils 9.1 sources) the
'illegal seek' no longer occurs, but it also doesn't follow the new file:
There is no output at all after tail announces that it is "following new file."

I did verify that the "new" instance of /dev/ttyMYDEV, when observed from
another independent process (via cat, less, more, tail, etc.) is indeed
sinking output from the device, as expected. But tail just isn't seeing it.

Also fiddled about with --sleep-interval=N (with several values of N) and
--retry as well, but no joy.

The output from `strace tail ...` would be useful I think to help diagnose.

thanks,
Pádraig






reply via email to

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