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

Re: [PATCH] read_index_from: remove bogus errno assignments

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 6, 2012, 17:03 UTC
Message-ID
<7vsjc0ymty.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1344252429-7377-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> While at it, move die_errno() next to xmmap() call because it's the
> mmap's error code that we care about. Otherwise if close(fd); fails,
> it could overwrite mmap's errno.
Makes sense and is a sensible fix.
Thanks.
Previous: Nguyễn Thái Ngọc Duy
Message 2 of 2 in “read_index_from: remove bogus errno assignments”
  1. read_index_from: remove bogus errno assignmentsNguyễn Thái Ngọc Duy, Aug 6, 2012
  2. Junio C HamanoAug 6, 2012

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.