Re: [PATCH 2/2] sequencer.c: check return value of close() in rewrite_file()

2017-11-01 Thread René Scharfe
Am 01.11.2017 um 15:45 schrieb Simon Ruderich: > Not checking close(2) can hide errors as not all errors are reported > during the write(2). > > Signed-off-by: Simon Ruderich > --- > > On Wed, Nov 01, 2017 at 02:00:11PM +0100, René Scharfe wrote: >> Most calls are not checked, but that doesn't n

[PATCH 2/2] sequencer.c: check return value of close() in rewrite_file()

2017-11-01 Thread Simon Ruderich
Not checking close(2) can hide errors as not all errors are reported during the write(2). Signed-off-by: Simon Ruderich --- On Wed, Nov 01, 2017 at 02:00:11PM +0100, René Scharfe wrote: > Most calls are not checked, but that doesn't necessarily mean they need > to (or should) stay that way. The