Fix up totally buggered read_or_die()
authorLinus Torvalds <torvalds@osdl.org>
Fri, 12 Jan 2007 04:37:38 +0000 (20:37 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 12 Jan 2007 05:05:34 +0000 (21:05 -0800)
commit4494c656e2e29c468c48c9c2b20595342056e9dc
tree21dc0c3eb8efd6f15b5a797d15da2fe3fd1b44c4
parentd34cf19b8987ae0f0806e257edf877238d044747
Fix up totally buggered read_or_die()

The "read_or_die()" function would silently NOT die for a partial read,
and since it was of type "void" it obviously couldn't even return the
partial number of bytes read.

IOW, it was totally broken. This hopefully fixes it up.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
write_or_die.c