On Mon, 12 Oct 2026 08:08:52 GMT, Johan Sjölen <[email protected]> wrote:

> Knowing whether this is truly "correct" is kinda hard. Consider a file with 
> name `a.log` and a hard link to that file, which we call `b.log`.
> 
> Then, with this code, rotation will correctly cause both `LogFileOutput`'s to 
> print to the new `a.log`, but the `b.log` hard link will now point to 
> `a.log.0`. Is that correct? Eeeh, I don't know! Probably?

Yes, I tried this. After rotation, `b.log` and `a.log.0` still refer to the 
same file.

I'm not sure whether we should keep the hard link pointing to the active log 
file after rotation. Maintaining that relationship seems outside the scope of 
this fix. I'd like to hear what others think.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/33090#issuecomment-6130423110

Reply via email to