aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_freebsd_sendfile_chain.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-12-02 05:47:29 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-12-02 05:47:29 +0000
commita7dcbaf4ff0ce7ee3ce0e7d767cf86a25f661849 (patch)
tree9ab7a0d27be8d86d10418eaee2471ce126e75db6 /src/os/unix/ngx_freebsd_sendfile_chain.c
parent4fc368fa3019e06e0de9acd58b8035751c74e38f (diff)
downloadnginx-a7dcbaf4ff0ce7ee3ce0e7d767cf86a25f661849.tar.gz
nginx-a7dcbaf4ff0ce7ee3ce0e7d767cf86a25f661849.zip
nginx-0.0.1-2003-12-02-08:47:29 import
Diffstat (limited to 'src/os/unix/ngx_freebsd_sendfile_chain.c')
-rw-r--r--src/os/unix/ngx_freebsd_sendfile_chain.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c
index e76f4c6f4..c9d3d7a14 100644
--- a/src/os/unix/ngx_freebsd_sendfile_chain.c
+++ b/src/os/unix/ngx_freebsd_sendfile_chain.c
@@ -176,6 +176,8 @@ ngx_log_debug(c->log, "NOPUSH");
hsize = 0;
}
+ sent = 0;
+
rc = sendfile(file->file->fd, c->fd, file->file_pos,
fsize + hsize, &hdtr, &sent, 0);