comparison src/os/unix/ngx_freebsd_sendfile_chain.c @ 5557:188481078faf

Use ngx_socket_errno where appropriate. Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
author Piotr Sikora <piotr@cloudflare.com>
date Mon, 03 Feb 2014 14:17:17 -0800
parents ad137a80919f
children 675bda8dcfdb
comparison
equal deleted inserted replaced
5556:4006bf77943b 5557:188481078faf
229 229
230 if (ngx_freebsd_use_tcp_nopush 230 if (ngx_freebsd_use_tcp_nopush
231 && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET) 231 && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET)
232 { 232 {
233 if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { 233 if (ngx_tcp_nopush(c->fd) == NGX_ERROR) {
234 err = ngx_errno; 234 err = ngx_socket_errno;
235 235
236 /* 236 /*
237 * there is a tiny chance to be interrupted, however, 237 * there is a tiny chance to be interrupted, however,
238 * we continue a processing without the TCP_NOPUSH 238 * we continue a processing without the TCP_NOPUSH
239 */ 239 */