Marc Lehmann wrote:

I would have thought that st_ino would change if the file is recreated,
but it doesn't seem to do so.

Then your filesystem reuses the same inode number.

Can anyone confirm what the correct way is to handle this?

What do you perceive as incorrect? If you are concerned about races, when
you are not looking fast enough, then there is no way to avoid those.

I want to find a way to detect logfile rotation, so the file gets rotated out the way and a new file is created.

I have an fd open to the file, which will never increase in size because the file has been deleted, but my app doesn't yet know that.

Is there a way to detect this?

Regards,
Graham
--

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to