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

Re: [RFH] plumber's puzzle

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Apr 22, 2007, 20:43 UTC
Message-ID
<alpine.LFD.0.98.0704221341080.9964@woody.linux-foundation.org>
In-Reply-To
<7v647ombi6.fsf@assigned-by-dhcp.cox.net>
On Sun, 22 Apr 2007, Junio C Hamano wrote:
> 
> This shows the single "diff --git" header line without anything,
> to show that the path is not stat-clean, but the contents are
> unchanged, which is what is expected.
Actually, I think the "good" case is the broken one.

Do an "strace -f" on the two cases, and you'll see an EBADF in the case that you think is good: the missing output *is* there, it's just that you closed the file descriptor so you don't see it.

So if the output you want is with the close(1) (ie with the output discarded), then you have some other bug there.

		Linus
Previous: Florian WeimerNext: Junio C Hamano
Message 3 of 8 in “[RFH] plumber's puzzle”
  1. Junio C HamanoApr 22, 2007
  2. Florian WeimerApr 22, 2007
  3. Linus TorvaldsApr 22, 2007
  4. Junio C HamanoApr 22, 2007
  5. Linus TorvaldsApr 22, 2007
  6. Junio C HamanoApr 22, 2007
  7. H. Peter AnvinApr 24, 2007
  8. Johannes SchindelinApr 24, 2007

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.