commit | 3376298b59abea4ec3c69fe1dbe5898db260cc5a | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Fri Jan 05 14:04:47 2007 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Fri Jan 05 14:04:47 2007 +0000 |
tree | a831c13cfb8e839ddf5d020a879d3e4d8c0376f8 | |
parent | 98b8e9487dc40100d8031136f2241a66ce9dffb0 [diff] |
Stop tracking buffer size - it is a constant. Stop ignoring write errors. Fix bugs in this line: rc->buffer_size = read(rc->fd, RC_BUFFER, rc->buffer_size); (a) should use safe_read() (b) just ONE short read (e.g. 4 bytes) will make ALL future reads short!