logoalt Hacker News

jefffffftoday at 6:24 PM0 repliesview on HN

don't forget to fsync the file before the rename! and you also need to fsync the directory after the rename!