← Back to context

Comment by wmf

4 months ago

You need to sync twice because Unix is dumb: "According to the standard specification (e.g., POSIX.1-2001), sync() schedules the writes, but may return before the actual writing is done." https://man7.org/linux/man-pages/man2/sync.2.html

> Unix is dumb

I don't know. Now async I/O is all the rage and that is the same idea.