Code

Check for IO errors after running a command
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 24 Jun 2007 17:29:33 +0000 (10:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2007 05:56:40 +0000 (22:56 -0700)
commit0f157315a1020fce76fe2c5a703e40684b9b1699
tree1ca26e03dee85ce03e56b35a18e66f2c87e511a3
parent47d0b4ff57f391786ed050f38c0de51462eda97a
Check for IO errors after running a command

This is trying to implement the strict IO error checks that Jim Meyering
suggested, but explicitly limits it to just regular files. If a pipe gets
closed on us, we shouldn't complain about it.

If the subcommand already returned an error, that takes precedence (and we
assume that the subcommand already printed out any relevant messages
relating to it)

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c