Skip to content

ensure if the open file have the good link.#1153

Open
rednaks wants to merge 1 commit intocircus-tent:masterfrom
rednaks:fix-logrotate
Open

ensure if the open file have the good link.#1153
rednaks wants to merge 1 commit intocircus-tent:masterfrom
rednaks:fix-logrotate

Conversation

@rednaks
Copy link
Copy Markdown

@rednaks rednaks commented Dec 6, 2020

fixing #1152

@rednaks
Copy link
Copy Markdown
Author

rednaks commented Dec 7, 2020

it seems that fstat is failing on mac platform any ideas for an alternative api ?

Copy link
Copy Markdown
Contributor

@k4nar k4nar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

Do you think we could use os.path.exists instead?

Also a unit test for this would be awesome 🙏 .

@biozz
Copy link
Copy Markdown
Contributor

biozz commented Dec 16, 2020

I commented on the original issue with an example of a working setup with logrotate, please check it out. Therefore I think we might not need this change at all.

@rednaks
Copy link
Copy Markdown
Author

rednaks commented Dec 17, 2020

@k4nar not really because logrotate create a new file the issue is not the existance or not of the file but the link between the open file and the existing file on the disk

@biozz sorry I forgot to reply your comment on the issue, I actually tried it and it doesn't work, it's less frequent but still have the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants