]> git.kaiwu.me - nginx.git/commit
Fixed unix ngx_write_chain_to_file() to return total bytes written.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 20 Oct 2011 12:40:26 +0000 (12:40 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 20 Oct 2011 12:40:26 +0000 (12:40 +0000)
commitaecb2eda1368aa7e3b58738f2577474d98bf58ca
treed7e6e07f41652b1ca507f59378617dbad4ee2db8
parent5f810705232f477361de76521287614562c34592
Fixed unix ngx_write_chain_to_file() to return total bytes written.

Previously result of last iteration's writev() was returned.  This was
unnoticed as return value was only used if chain contained only one or
two buffers.
src/os/unix/ngx_files.c