Thread (155 messages) 155 messages, 8 authors, 2018-09-27

Re: [GSoC][PATCH v5 02/20] rebase -i: rewrite append_todo_help() in C

From: Christian Couder <hidden>
Date: 2018-08-07 16:29:01

On Tue, Aug 7, 2018 at 6:15 PM, Phillip Wood [off-list ref] wrote:
On 07/08/18 16:25, Christian Couder wrote:
quoted
I agree about checking the return value from fputs(), but it seems to
me that we don't usually check the value of fclose().
A quick grep shows you're right, there are only a handful of places where
the return value of fclose() is checked (there aren't many checks for the
return value of close() either), I'm don't think that is safe though given
that write errors may only show up when the file gets flushed by closing it.
I vaguely remember we tried to check those return values but it didn't
work well sometimes.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help