]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commit
- check fwrite(3) return value
authorMax Khon <fjoe@samodelkin.net>
Thu, 26 Feb 2015 06:54:44 +0000 (12:54 +0600)
committerMax Khon <fjoe@samodelkin.net>
Thu, 26 Feb 2015 06:54:44 +0000 (12:54 +0600)
commit624beeb3518dabf62b13e08093f8cbacc31c9d99
tree2272e5fef94024dd38fac4be5591982c92950238
parentcab95a96c2ed4887b992261db5f6975c05bc0493
- check fwrite(3) return value
- do fflush(3) to flush stdio buffers (with error check) so that
I/O errors are detected more properly
- do not leave incompletely written output file in case of I/O errors
- set error condition on I/O errors so that rrdtool exits with non-zero
exit code
src/rrd_dump.c