aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix/ngx_linux_init.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-12-11 16:30:42 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-12-11 16:30:42 +0000
commitae0e919135b7e1e80167d09b5bd2fef7903f7659 (patch)
treea5f390dae59ed792dc9140b68e4188ae7cb4e4a7 /src/os/unix/ngx_linux_init.c
parent8d3ef1a3b320f786d06170d5831555aa3910de64 (diff)
downloadnginx-ae0e919135b7e1e80167d09b5bd2fef7903f7659.tar.gz
nginx-ae0e919135b7e1e80167d09b5bd2fef7903f7659.zip
Microoptimization of sendfile(2) usage under FreeBSD.
FreeBSD kernel checks headers/trailers pointer against NULL, not corresponding count. Passing NULL if there are no headers/trailers helps to avoid unneeded work in kernel, as well as unexpected 0 bytes GIO in traces.
Diffstat (limited to 'src/os/unix/ngx_linux_init.c')
0 files changed, 0 insertions, 0 deletions