On Tue, 3 Oct 2006, Junio C Hamano wrote: > > Also I am not sure about the "fsync(fd); fclose(refs_file)" > sequence I did not touch with this patch. Doesn't stdio still > have stuff buffered when you run fsync()? Would adding fflush() > in between help? Yes, there should be a fflush() there before the fsync. Linus - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html