git.kernel.org was serving 37M of binary garbage after the end of </html> when viewing some files under tree/ 🤔 Seems to have been resolved now, though... anybody know what that's about?
@monsieuricon @vegard ISMT the cache replacement should instead create the new contents in a temporary file and rename the file into place when done?
@monsieuricon @vegard FWIW, in postgres we've seen ftruncate() failures in production due to signal delivery. Even with SA_RESTART.
@AndresFreundTec @monsieuricon The code is https://git.zx2c4.com/cgit/tree/cache.c, there's a rename() call in there. Unfortunately I didn't find any high-level documentation on how it's designed to work. Also didn't find the time to look closer at it.