The sync() system call is POSIX, but as far as I can tell the sync command isn't. Whether this is actually a real world issue, I have no idea, but since half of these conversations are about being POSIXly correct...
Posted Apr 14, 2009 7:10 UTC (Tue) by dlang (✭ supporter ✭, #313)
[Link]
I remember reading at one point that on some older systems sync could exit as soon as the fsync started, but if you did sync;sync the second one could not start until the first finished.
so sync was not enough sync;sync would do the job, but sync;sync;sync is what people ended up using.
this could be yet another myth, but it seems to match the facts that I have run across on the topic