git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] pack-refs: use lockfile as everybody else does.

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 5, 2006, 02:55 UTC
Message-ID
<Pine.LNX.4.64.0610041954480.3952@g5.osdl.org>
In-Reply-To
<7v7izhrc2v.fsf@assigned-by-dhcp.cox.net>
On Tue, 3 Oct 2006, Junio C Hamano wrote:
Show 5 quoted lines
> 
>  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
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 4 in “pack-refs: use lockfile as everybody else does.”
  1. pack-refs: use lockfile as everybody else does.Junio C Hamano, Oct 3, 2006
  2. Linus TorvaldsOct 5, 2006
  3. Junio C HamanoOct 5, 2006
  4. Linus TorvaldsOct 5, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.