Mercurial > hg > nginx
diff src/os/unix/ngx_linux_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 | bdb3588681c9 |
children | f9c83484d9ce |
line wrap: on
line diff
--- a/src/os/unix/ngx_linux_sendfile_chain.c Wed Feb 05 18:51:30 2014 +0400 +++ b/src/os/unix/ngx_linux_sendfile_chain.c Mon Feb 03 14:17:17 2014 -0800 @@ -163,7 +163,7 @@ if (setsockopt(c->fd, IPPROTO_TCP, TCP_NODELAY, (const void *) &tcp_nodelay, sizeof(int)) == -1) { - err = ngx_errno; + err = ngx_socket_errno; /* * there is a tiny chance to be interrupted, however, @@ -189,7 +189,7 @@ if (c->tcp_nodelay == NGX_TCP_NODELAY_UNSET) { if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { - err = ngx_errno; + err = ngx_socket_errno; /* * there is a tiny chance to be interrupted, however,